Peppol BIS Billing 3.0.21 · UBL

UBL-CR-640: A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PerUnitAmount

Peppol BIS Billing 3.0.21 · UBL

warningschema

Original rule text

[UBL-CR-640]-A UBL invoice should not include the InvoiceLine Item Price AllowanceCharge PerUnitAmount

Stored validation assertion
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:Price/cac:AllowanceCharge/cbc:PerUnitAmount)

UBL-CR-640 is a warning rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is flagged but not rejected.

What this rule requires

This rule checks that a UBL invoice or credit note does not contain a cac:Price/cac:AllowanceCharge/cbc:PerUnitAmount inside any cac:InvoiceLine or cac:CreditNoteLine. The test is not(...), so the rule is triggered if such a PerUnitAmount is present. Because the severity is warning, the document is reported but not rejected for this issue.

How to fix

Remove the cbc:PerUnitAmount element from cac:AllowanceCharge within cac:Price on every cac:InvoiceLine and cac:CreditNoteLine in the UBL document. If the invoice is generated by software, configure it not to output this element.

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 UBL-CR-640.

Validate an invoice against these rules · All release changes