task:LED-1 Northwind · Ledger · step 2 of 5claimed 1m ago
- 1 checks passed
- 1 commit
The step asked for
Round each line's VAT in cents, then sum the rounded lines. The invoice VAT is that sum, never the rounding of an unrounded total.
Done when
vat_for(line, rate)returns cents, half away from zerovat_totalsumsvat_forover the lines- The one-cent drift test from step 1 passes
- The rate lookup stays where it is
A credit note reuses the same rule. The PDF layout is step 3.
Checks
- Billing rounds per linePassed
Commits
- 985b4e7fix: round VAT per line and sum the lines1 min ago