Files
pos-system/.scratchpad/plan.md
Ho Ngoc Hai aab80fd697 fix(web-client-tpos): add permissions and user_id to CreateStaff INSERT
Fix NOT NULL constraint violations in merchant_staff table:
- Add permissions = 0 (default no permissions)
- Add user_id = Guid.Empty (placeholder until linked)
- Verified: CREATE→UPDATE→DELETE all working
2026-03-03 20:46:49 +07:00

1.3 KiB

Task Plan — GoodGo Platform

Updated: 2026-03-03 20:45

Completed Tasks

  1. Admin Users & Roles — CRUD, phân quyền
  2. POS Unified page — 3 tabs (Sale, History, Dashboard)
  3. POS Inline Payment Flow
  4. Replace hardcoded POS data with API endpoints
  5. P1: Order API Create — POST /api/bff/pos/orders
  6. P1: Print Receipt — Thermal 80mm popup
  7. P2: Dashboard Real Data — hourly/popular/payment
  8. P2: History Date Filter — today/7d/30d
  9. P3: Products CRUD — Create/Read/Update/Delete
  10. P3: Staff CRUD — Create/Read/Update/Delete (soft-delete)
  11. P3: Inventory Update — PUT quantity/reorder level

Pending Tasks (Ưu tiên cao → thấp)

🟡 P3 — Admin Panel (còn lại)

  • Promotions: Campaign management UI
  • Notifications: Replace hardcoded bell data

🟢 P4 — Frontend Apps

  • web-client-tpos-net: Deployed locally (port 3001)
  • app-client-base-swift: iOS app review
  • web-docs: Documentation site

🟢 P5 — Infrastructure

  • Observability: Prometheus + Grafana
  • CI/CD: GitHub Actions
  • Testing: Unit + Integration tests coverage

Next Task

Deploy & verify web-client-tpos-net then continue with Promotions or P4