PEPPOL-EN16931-R121

Base quantity MUST be a positive number above zero.

error: the document is invalid Peppol documentation ↗

Why it fails

  • cac:Price/cbc:BaseQuantity is 0 or negative.

How to fix it

Leave the base quantity out (it then counts as 1), or give the quantity the price is for, such as 100 for a price per hundred.

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:InvoiceLine | cac:CreditNoteLine
Test
not(cac:Price/cbc:BaseQuantity) or xs:decimal(cac:Price/cbc:BaseQuantity) > 0

Checked with Peppol BIS Billing 3.0 Invoice, Peppol BIS Billing 3.0 Credit Note

Context
ram:NetPriceProductTradePrice | ram:GrossPriceProductTradePrice
Test
not(ram:BasisQuantity) or xs:decimal(ram:BasisQuantity) > 0

Checked with XRechnung 3.0 Invoice (CII)