UBL-CR-557: A UBL invoice should not include the InvoiceLine AllowanceCharge PerUnitAmount
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-CR-557]-A UBL invoice should not include the InvoiceLine AllowanceCharge PerUnitAmount
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:AllowanceCharge/cbc:PerUnitAmount)UBL-CR-557 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
The rule checks that a UBL Invoice or CreditNote does not contain cbc:PerUnitAmount inside any line-level cac:AllowanceCharge. The test is satisfied only when no such element exists under cac:InvoiceLine or cac:CreditNoteLine. Because the severity is warning, a document with this element is still accepted but the validator advises against it.
How to fix
Remove the cbc:PerUnitAmount element from every cac:AllowanceCharge within cac:InvoiceLine (in an Invoice) or cac:CreditNoteLine (in a CreditNote).
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-557.
Validate an invoice against these rules · All release changes