PEPPOL-EN16931-R121
Base quantity MUST be a positive number above zero.
Why it fails
cac:Price/cbc:BaseQuantityis 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.
cac:InvoiceLine | cac:CreditNoteLine
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
ram:NetPriceProductTradePrice | ram:GrossPriceProductTradePrice
not(ram:BasisQuantity) or xs:decimal(ram:BasisQuantity) > 0
Checked with XRechnung 3.0 Invoice (CII)