10 lines
440 B
Markdown
10 lines
440 B
Markdown
# 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` ✅
|