fix(pos-payment-overpay-fix): pOS selfpay: payments exceed total

This commit is contained in:
Deploy
2026-08-26 23:26:01 +02:00
parent 642fe037c2
commit 42b0290dd2
7 changed files with 21 additions and 5 deletions

View 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`