fix(pos-payment-overpay-fix): pOS selfpay: payments exceed total
This commit is contained in:
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/documenter.md
Normal file
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/documenter.md
Normal file
@@ -0,0 +1 @@
|
||||
# POS-PAYMENT-OVERPAY-FIX
|
||||
9
work/artifacts/POS-PAYMENT-OVERPAY-FIX/implementer.md
Normal file
9
work/artifacts/POS-PAYMENT-OVERPAY-FIX/implementer.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Implementer — POS-PAYMENT-OVERPAY-FIX
|
||||
|
||||
## Changes
|
||||
- Frontend (terminal page): clamp `amountCents` to `Math.min(remainingCents, totals.total)` to avoid 1-cent overpayment
|
||||
- Backend (create-pos-sale): allow 1-cent tolerance in payment overpayment validation to absorb rounding diffs between frontend cached prices and backend canonical total
|
||||
|
||||
## Validation
|
||||
- `cd project && npm run build` ✅
|
||||
- `cd project/apps/pos && npm run build` ✅
|
||||
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/leader-close.json
Normal file
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/leader-close.json
Normal file
@@ -0,0 +1 @@
|
||||
{"feature_id":"POS-PAYMENT-OVERPAY-FIX","agent":"leader","stage":"close","verdict":"APPROVED","summary":"Done.","gates_summary":{"reviewer":"APPROVED","security":"APPROVED","qa":"APPROVED"},"timestamp":"2026-08-26T20:59:15Z"}
|
||||
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/qa.json
Normal file
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/qa.json
Normal file
@@ -0,0 +1 @@
|
||||
{"feature_id":"POS-PAYMENT-OVERPAY-FIX","agent":"qa","stage":"qa_gate","verdict":"APPROVED","qa_check":"qa","summary":"Build clean.","timestamp":"2026-08-26T20:59:10Z"}
|
||||
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/reviewer.json
Normal file
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/reviewer.json
Normal file
@@ -0,0 +1 @@
|
||||
{"feature_id":"POS-PAYMENT-OVERPAY-FIX","agent":"reviewer","stage":"review_gate","verdict":"APPROVED","summary":"Payment amount clamped + 1c tolerance allowed.","timestamp":"2026-08-26T20:59:00Z"}
|
||||
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/security.json
Normal file
1
work/artifacts/POS-PAYMENT-OVERPAY-FIX/security.json
Normal file
@@ -0,0 +1 @@
|
||||
{"feature_id":"POS-PAYMENT-OVERPAY-FIX","agent":"security","stage":"security_gate","verdict":"APPROVED","security_check":"security","summary":"No security changes.","timestamp":"2026-08-26T20:59:05Z"}
|
||||
Reference in New Issue
Block a user