Functional Weave
Code in Rust

finance.tax.add-vat@1.0.0

README.md

320 bytes · view raw

# finance.tax.add-vat

Returns the whole breakdown, not just the tax. An invoice needs net, tax and
gross together, and deriving the third from the other two in caller code is
where rounding bugs are born.

The date is the date of supply. Defaulting it to today is the single most common
way to get a credit note wrong.