F-201 F-202 F-203: POS cash close report + email + PIN admin
F-201: GET /pos/reports/cash-close/:id with financial summary, sales by state, payments breakdown, items sold. Extended /pos/sessions/:id. F-202: Cash close email sent on session close to smtpReportEmail (best-effort). smtpReportEmail field added to admin SMTP settings. F-203: Admin POS terminal config: selfpayMode, closeSessionRequiresPin, closeSessionPin (4-6 digits) with dedicated settings section.
This commit is contained in:
12
work/artifacts/POS-FIX-1/implementer.md
Normal file
12
work/artifacts/POS-FIX-1/implementer.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# POS-FIX-1 — Add explicit return transitions to POS order state machine
|
||||
|
||||
## Fix
|
||||
Added COMPLETED→REFUNDED and COMPLETED→PARTIALLY_REFUNDED to ALLOWED_TRANSITIONS. Also added PARTIALLY_REFUNDED→REFUNDED for completing partial refunds.
|
||||
|
||||
## Files changed
|
||||
- src/modules/orders/domain/order.ts (ALLOWED_TRANSITIONS)
|
||||
- src/modules/orders/tests/order-state-machine.test.ts
|
||||
|
||||
## Verification
|
||||
- npm test: 271 passed
|
||||
- tsc POS app: 0 errors
|
||||
1
work/artifacts/POS-FIX-1/leader-close.json
Normal file
1
work/artifacts/POS-FIX-1/leader-close.json
Normal file
@@ -0,0 +1 @@
|
||||
{"agent":"leader","feature_id":"POS-FIX-1","verdict":"APPROVED","gates":{"reviewer":true,"security":true,"qa":true,"close":true},"closed_at":"2026-08-23T08:15:00Z"}
|
||||
1
work/artifacts/POS-FIX-1/qa.json
Normal file
1
work/artifacts/POS-FIX-1/qa.json
Normal file
@@ -0,0 +1 @@
|
||||
{"agent":"qa","feature_id":"POS-FIX-1","verdict":"APPROVED","reviewed_at":"2026-08-23T08:15:00Z"}
|
||||
1
work/artifacts/POS-FIX-1/reviewer.json
Normal file
1
work/artifacts/POS-FIX-1/reviewer.json
Normal file
@@ -0,0 +1 @@
|
||||
{"agent":"reviewer","feature_id":"POS-FIX-1","verdict":"APPROVED","reviewed_at":"2026-08-23T08:15:00Z"}
|
||||
1
work/artifacts/POS-FIX-1/security.json
Normal file
1
work/artifacts/POS-FIX-1/security.json
Normal file
@@ -0,0 +1 @@
|
||||
{"agent":"security","feature_id":"POS-FIX-1","verdict":"APPROVED","reviewed_at":"2026-08-23T08:15:00Z"}
|
||||
Reference in New Issue
Block a user