PEPPOL-EN16931-R046: Item net price MUST equal (Gross price - Allowance amount) when gross price is provided
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-EN16931-R046]-Item net price MUST equal (Gross price - Allowance amount) when gross price is provided.
not(cbc:BaseAmount) or xs:decimal(../cbc:PriceAmount) = xs:decimal(cbc:BaseAmount) - xs:decimal(cbc:Amount)PEPPOL-EN16931-R046 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
For each cac:Price/cac:AllowanceCharge, the rule checks that if a gross price (cbc:BaseAmount) is present, then the item net price (cac:Price/cbc:PriceAmount) equals the gross price minus the allowance amount (cbc:Amount). If cbc:BaseAmount is absent, the rule passes. If it is present and the values are not equal, the document fails validation with fatal severity.
How to fix
For every cac:Price/cac:AllowanceCharge that has a cbc:BaseAmount, set the parent cac:Price/cbc:PriceAmount to the result of cbc:BaseAmount minus cbc:Amount. If you did not intend to provide a gross price, remove cbc:BaseAmount from that AllowanceCharge.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to PEPPOL-EN16931-R046.
Validate an invoice against these rules · All release changes