Console
Catalog
Projects
Companies
Diagrams
Claude
Time
Calendar
Report
/rk
1 found
62%
2h 40m
Queue
3
4
to review
Saved
New note
Skip to the editor
All work
8 tasks
▾
tasks
1
notes
0
+
New task
Ledger
1
Northwind
940k
tokens generated, open the daily trend
Work claimed, awaiting your review.
Fix the VAT rounding
Hotfix
fix-vat-rounding
1/3
2
2
2
0
tokens generated
Fix the VAT rounding
project:ledger task:fix-vat-rounding
2
Time
6h 42m
Resume
3 sessions · stopped 1 min ago
Description
Invoices drift by one cent when a customer has many small lines. Move the VAT rounding out of [[Billing…
Steps
1/3
Next: Review the invoice PDF layout
2 in draft
Wrapup
Claude · 1 min ago
vat total in crates/billing/src/vat.rs sums the VAT of each rounded line, so an invoice never drifts by a…
2 notes newer than this
Notes
2
finance-review.md
notes
Finance review Finance accepts a one cent difference only when the lines are rounded individually.
rounding-rules.md
notes
Rounding rules VAT is rounded per line , in cents, half away from zero. Why the invoice total is not rounded…
+
New note
in Ledger
Add existing note
0
/rk
project:ledger task:fix-vat-rounding
Context
Notes
Architecture
Report
Other
Delete
On 1 task
ledger/fix-vat-rounding
+
task
In full
By reference
Lives in
Global
Northwind
Atlas · Northwind
Ledger · Northwind
Payments v1 · Northwind
write
read
Lv1 Heading
Lv2 Heading
Lv3 Heading
Lv4 Heading
Lv5 Heading
Lv6 Heading
Rounding rules
VAT is rounded
per line
, in cents, half away from zero.
Why the invoice total is not rounded
Two finance reviews disagreed with the sum of rounded lines, so the rule is written down here once.
A line with a zero rate has no VAT.
A credit note rounds the same way as the invoice it reverses.
Tasks for rounding-rules.md
It lives in Ledger and can sit on any of its tasks. Open one and the note comes along.
On
ledger/fix-vat-rounding
Company
1
Northwind
1
8
Project
1
Ledger
1
5
Task
5
Fix the VAT rounding
fix-vat-rounding
Ship the invoice export
invoice-export
Remind customers of late payments
late-payment-reminders
Migrate the legacy invoices
migrate-invoices
Upgrade sqlx
upgrade-sqlx