- Добавлен раздел 17.3: Правила безопасности - разделение данных и функционала
- Новые критические запреты 24-26: запрет использования пользовательских данных в логике
- Расширен глоссарий: контекстно-зависимые термины для SupplyOrder
- Уточнена терминология: четкое разделение "Маркет" vs "Маркетплейс"
- Добавлены примеры безопасного и уязвимого кода
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Обновлена схема Prisma с новыми полями и связями
- Актуализированы правила системы в rules-complete.md
- Оптимизированы GraphQL типы, запросы и мутации
- Улучшены компоненты интерфейса и валидация данных
- Исправлены критические ESLint ошибки: удалены неиспользуемые импорты и переменные
- Добавлены тестовые файлы для проверки функционала
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Добавлена автогенерация артикулов СФ (SF-T для товаров, SF-C для расходников)
- Добавлены поля для комплектов: количество и цена за комплект
- Добавлены поля учета движения товаров: заказано, в пути, остаток, продано
- Создан компонент статистики склада с общими показателями и разбивкой по типам
- Реализовано переключение между карточным и табличным режимом отображения (5 карточек в ряду)
- Обновлены GraphQL схемы для поддержки новых полей
- Улучшен пользовательский интерфейс: убран заголовок, оптимизирована компоновка
- Синхронизированы поля между карточками и таблицей для единообразного отображения
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Improved logging for warehouse statistics to aid in debugging
- Updated GraphQL resolver to track 24-hour changes in warehouse metrics
- Implemented polling mechanism for real-time updates of warehouse statistics
- Enhanced StatCard component to reflect accurate percentage changes from GraphQL data
🤖 Generated with [Claude Code](https://claude.ai/code)
- Added new GraphQL query `GET_FULFILLMENT_WAREHOUSE_STATS` to fetch warehouse statistics with daily changes
- Created comprehensive GraphQL resolver `fulfillmentWarehouseStats` that calculates:
* Current quantities for products, goods, defects, pvzReturns, fulfillmentSupplies, sellerSupplies
* Daily changes (absolute numbers) based on deliveries in the last 24 hours
* Percentage changes for all categories
- Updated fulfillment warehouse dashboard to use real GraphQL data instead of static calculations
- Added polling every 60 seconds to keep statistics up-to-date
- Enhanced StatCard component to display accurate percentage and absolute changes
- Statistics now show real supply deliveries and changes relative to the previous day
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Updated RealSupplyOrdersTab to use proper Russian status labels (SUPPLIER_APPROVED, LOGISTICS_CONFIRMED, SHIPPED)
- Added backward compatibility for legacy statuses (CONFIRMED, IN_TRANSIT) with "(устаревший)" suffix
- Updated statistics counting to include new status types
- All status badges now display proper Russian text instead of technical enum names
- Improved user experience with clearer status descriptions
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Added logistics partner selection as mandatory requirement for fulfillment supply orders
- Implemented complete status workflow: PENDING → SUPPLIER_APPROVED → LOGISTICS_CONFIRMED → SHIPPED → DELIVERED
- Created dedicated interfaces for all three parties:
* Fulfillment: Create orders with mandatory logistics selection and receive shipments
* Suppliers: View, approve/reject orders, and ship approved orders via /supplies tab
* Logistics: Confirm/reject transport requests via new /logistics-orders dashboard
- Updated Prisma schema with logisticsPartnerId (non-nullable) and new SupplyOrderStatus enum
- Added comprehensive GraphQL mutations for each party's workflow actions
- Fixed GraphQL resolver to include logistics partners in supplyOrders query
- Enhanced UI components with proper status badges and action buttons
- Added backward compatibility for legacy status handling
- Updated sidebar navigation routing for LOGIST organization type
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- ✨ Added compact employee forms (add/edit) with all fields visible
- 🎯 Implemented expandable employee rows with timesheet integration
- 📊 Added real KPI calculation based on work hours, sick days, and overtime
- 📅 Added bulk date selection and editing in calendar
- 🗓️ Implemented day-specific editing modal with hours and overtime tracking
- 💾 Extended database schema with overtimeHours field
- 🎨 Improved UI layout: tabs left, search right, real current date display
- 🧹 Fixed spacing issues and removed unnecessary gaps
- 🔧 Enhanced GraphQL mutations for employee schedule management