PEPPOL-T01-R019

Item net price SHALL 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 Peppol Order