feat: Update inventory system plan with completion date and BFF synchronization details

This commit is contained in:
masoodafar-web
2026-01-03 16:00:37 +03:30
parent 86c4d9ce70
commit 0369292d7f
+43 -2
View File
@@ -1,8 +1,8 @@
# 📦 سیستم انبارداری یکپارچه (Unified Inventory Management) # 📦 سیستم انبارداری یکپارچه (Unified Inventory Management)
> **تاریخ ایجاد:** ۱۲ دی ۱۴۰۴ (1 January 2026) > **تاریخ ایجاد:** ۱۲ دی ۱۴۰۴ (1 January 2026)
> **تاریخ تکمیل:** ۱۲ دی ۱۴۰۴ (1 January 2026) > **تاریخ تکمیل:** ۱۳ دی ۱۴۰۴ (3 January 2026)
> **وضعیت:** ✅ **COMPLETED** > **وضعیت:** ✅ **COMPLETED** (CMS + BFF همگام)
> **اولویت:** 🟡 Medium > **اولویت:** 🟡 Medium
--- ---
@@ -73,6 +73,47 @@
- ⬜ تست‌های واحد و یکپارچه‌سازی (Phase 7) - ⬜ تست‌های واحد و یکپارچه‌سازی (Phase 7)
- ⬜ UI در BackOffice (صفحات راه ندارند - فقط منو در NavMenu اضافه شده) - ⬜ UI در BackOffice (صفحات راه ندارند - فقط منو در NavMenu اضافه شده)
---
## 🔄 همگام‌سازی BFF با CMS (۳ ژانویه ۲۰۲۶)
### فایل‌های آپدیت شده در BackOffice.BFF:
#### Proto Layer
- `BackOffice.BFF.Inventory.Protobuf/Protos/inventory.proto` - همگام با CMS
#### Application Layer - Commands
- `InventoryCQ/Commands/AddStock/` - حذف Success, Message
- `InventoryCQ/Commands/AdjustStock/` - Note→Reason, +ReferenceNumber
- `InventoryCQ/Commands/RecordLoss/` - Note→Reason, +ReferenceNumber
- `InventoryCQ/Commands/UpdateInventorySettings/` - InventoryItemId→Id
#### Application Layer - Queries
- `InventoryCQ/Queries/GetAllInventoryItems/` - PageIndex→Page, SearchTerm→Search
- `InventoryCQ/Queries/GetStockMovements/` - PageIndex→Page, +ProductTitle
- `InventoryCQ/Queries/GetLowStockItems/` - حذف Count
- `InventoryCQ/Queries/GetAllWarehouses/` - ActiveOnly→IsActive
#### WebApi Layer
- `Common/Mappings/InventoryProfile.cs` - بازنویسی کامل
### تغییرات کلیدی Proto:
| آیتم | CMS/BFF قدیم | CMS/BFF جدید |
|------|-------------|--------------|
| ProductType | `REGULAR`, `DISCOUNT` | `REGULAR_PRODUCT`, `DISCOUNT_PRODUCT` |
| StockMovementType | Sequential (0-9) | Grouped (10, 20, 30, 40, 50) |
| Pagination | `page_index` | `page` |
| Search | `search_term` | `search` |
| Product field | `product_name` | `product_title` |
### وضعیت Build:
```
CMS: Build succeeded. 0 Warning(s) 0 Error(s)
BFF: Build succeeded. 0 Warning(s) 0 Error(s)
```
---
### BFF Layer: ### BFF Layer:
-`Application/ProductsCQ/Queries/GetLowStockProducts/GetLowStockProductsQuery.cs` -`Application/ProductsCQ/Queries/GetLowStockProducts/GetLowStockProductsQuery.cs`
-`Application/ProductsCQ/Queries/GetLowStockProducts/GetLowStockProductsQueryHandler.cs` -`Application/ProductsCQ/Queries/GetLowStockProducts/GetLowStockProductsQueryHandler.cs`