Functional Weave
Code in TypeScript

finance.invoice.line-total@1.0.0

README.md

300 bytes · view raw

# finance.invoice.line-total

The discount is rounded once, at the line, before tax is applied. Rounding the
discount and the tax in the other order produces answers that differ by a penny
on roughly one line in five, which is exactly the kind of difference that turns
into a reconciliation project.