PEPPOL-EN16931-R046-SG
Item net price MUST equal (Gross price - Allowance amount) when gross price is provided.
error: the document is invalid
What the rule checks
As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.
Context
cac:Price/cac:AllowanceCharge
Test
not(cbc:BaseAmount) or xs:decimal(../cbc:PriceAmount) = xs:decimal(cbc:BaseAmount) - xs:decimal(cbc:Amount)
Checked with PINT SG Invoice, PINT SG Credit Note