feat(F-147): completed feature
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
# Feature actual: F-146 (Reporting: service summary and sales API)
|
||||
# Feature actual: F-147 (Admin: reporting shell and global filters)
|
||||
|
||||
## F-145 cerrada (2026-08-22) — Reporting: payment lines and POS cash-safe capture
|
||||
## F-146 cerrada (2026-08-22) — Reporting: service summary and sales API
|
||||
|
||||
- `reporting-service.ts`: ReportingService con summary() + sales() usando CTEs SQL parametrizados.
|
||||
- `GET /reporting/summary` + `GET /reporting/sales` con filtros/channel/storeId/terminalId/groupBy/pagination.
|
||||
- 44 tests reporting (14 unit + 15 route + 15 existing); npm run build 0; boundaries 0 nuevas; verify.sh verde; commit `91044da`.
|
||||
- Gates: reviewer ✅ / security ✅ / qa ✅ / document ✅ / leader-close ✅.
|
||||
- **Siguiente**: F-147 (Admin: reporting shell and global filters).
|
||||
|
||||
- `049_reporting_payment_lines.js`: tabla `reporting_payment_lines` (13 columnas, FK→orders_orders+pos_stores, 3 CHECK, 3 índices), inmutable (refunds como nuevas filas). patrón: INSERT-only.
|
||||
- `reporting-payment-lines.itest.ts` 16/16 ✅ (DB real).
|
||||
@@ -8,6 +14,8 @@
|
||||
- Gates: reviewer ✅ / security ✅ / qa ✅ / document ✅ / leader-close ✅.
|
||||
- **Siguiente**: F-146 (Reporting: service summary and sales API).
|
||||
|
||||
## F-145 cerrada (2026-08-22) — Reporting: payment lines and POS cash-safe capture
|
||||
|
||||
## F-144 cerrada (2026-08-22) — Reporting snapshots: store/VAT/cost/shipping
|
||||
|
||||
- `048_reporting_store_shipping_snapshots.js`: `orders_orders.store_id` (uuid NOT NULL DEFAULT default-store + FK→pos_stores + idx), `orders_orders.shipping_cents` (integer NOT NULL DEFAULT 0), `orders_items.cost_at_sale_cents` (bigint nullable), `orders_items.vat_rate` (text nullable).
|
||||
|
||||
Reference in New Issue
Block a user