fix(pos-payment-overpay-fix): pOS selfpay: payments exceed total
This commit is contained in:
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` ✅
|
||||
Reference in New Issue
Block a user