Rule reference

PEPPOL-EN16931-R120 The invoice line net amount, recomputed a second way

The invoice line net amount must equal quantity times net price divided by base quantity, plus line charges, minus line allowances. Peppol allows a tolerance of 0.02 here, an eighth of what EN 16931 grants the VAT rules.

Business term
BT-131

You cannot trip this rule. It constrains a figure this library computes for you rather than one it reads from your invoice, so no input reaches it.

The line net amount this library multiplies out. The rule recomputes it a second way and compares. If this rule ever does fire, it is a defect in @attestwire/en16931 and not in your invoice. Send it to hello@attestwire.com rather than changing your data to work around it.

Why there is no error payload here

Every other page in this reference carries the exact TeachingError the library returns, harvested by running it at build time. This one cannot: the rule guards a figure the library computes rather than one it reads, so there is no invoice that produces the object. Publishing an invented one would break the only promise the reference makes.

The rule is implemented, and it runs on every document. It is an assertion about our arithmetic, kept so that a regression in the totals is caught here rather than by a tax authority.

Arrived from a stack trace? The docsUrl on every error links straight here. Something wrong on this page — tell us.