diff --git a/CTO_DEPLOYMENT_REPORT.md b/CTO_DEPLOYMENT_REPORT.md index 276d1c37..18dc4443 100644 --- a/CTO_DEPLOYMENT_REPORT.md +++ b/CTO_DEPLOYMENT_REPORT.md @@ -59,17 +59,19 @@ Toàn bộ tính năng Admin và Staff POS đã được kiểm tra trực tiế ## Bugs Found & Fixed (commit 344be33) -### P2: Duplicate Products in POS Grid — ✅ FIXED +### P2: Duplicate Products in POS Grid — ✅ FIXED & VERIFIED - **URL**: /pos/{shopId}/cafe -- **Root Cause**: BFF CatalogController không filter `isActive`, trả về cả active + inactive products -- **Fix**: BFF default `isActive=true` + client-side dedup by product ID in PosDataService -- **Files**: CatalogController.cs, PosDataService.cs +- **Root Cause**: Seed data chạy 2 lần → 18 products với IDs khác nhau nhưng cùng name/price trong catalog DB +- **Fix**: (1) Xóa 9 duplicate records trong DB, (2) BFF default `isActive=true`, (3) client-side dedup by ID as safety net +- **Files**: CatalogController.cs, PosDataService.cs + DB cleanup +- **Verified**: POS giờ hiển thị đúng 9 sản phẩm unique -### P3: Admin Settings — Tên cửa hàng hiện "--" — ✅ FIXED +### P3: Admin Settings — Tên cửa hàng hiện "--" — ✅ FIXED & VERIFIED - **URL**: /admin/shop/{shopId}/settings - **Root Cause**: ShopPage.razor không truyền ShopName/VerticalLabel parameters cho ShopSettings component - **Fix**: Pass `ShopName="@_shopName" VerticalLabel="@_verticalLabel"` to ShopSettings - **Files**: ShopPage.razor +- **Verified**: Settings hiện "Cobic Coffee" / "Vertical_Cafe" đúng ---