feat: Update inventory system plan with completion date and BFF synchronization details
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
# 📦 سیستم انبارداری یکپارچه (Unified Inventory Management)
|
||||
|
||||
> **تاریخ ایجاد:** ۱۲ دی ۱۴۰۴ (1 January 2026)
|
||||
> **تاریخ تکمیل:** ۱۲ دی ۱۴۰۴ (1 January 2026)
|
||||
> **وضعیت:** ✅ **COMPLETED**
|
||||
> **تاریخ تکمیل:** ۱۳ دی ۱۴۰۴ (3 January 2026)
|
||||
> **وضعیت:** ✅ **COMPLETED** (CMS + BFF همگام)
|
||||
> **اولویت:** 🟡 Medium
|
||||
|
||||
---
|
||||
@@ -73,6 +73,47 @@
|
||||
- ⬜ تستهای واحد و یکپارچهسازی (Phase 7)
|
||||
- ⬜ 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:
|
||||
- ✅ `Application/ProductsCQ/Queries/GetLowStockProducts/GetLowStockProductsQuery.cs`
|
||||
- ✅ `Application/ProductsCQ/Queries/GetLowStockProducts/GetLowStockProductsQueryHandler.cs`
|
||||
|
||||
Reference in New Issue
Block a user