Peppol BIS Billing 3.0.20 · UBL

UBL-SR-37: Item price discount shall occur maximum once

Peppol BIS Billing 3.0.20 · UBL

fatalschema

Original rule text

[UBL-SR-37]-Item price discount shall occur maximum once

Stored validation assertion
(count(cac:Price/cac:AllowanceCharge/cbc:Amount) <= 1)

UBL-SR-37 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected.

What this rule requires

The rule requires that within each cac:InvoiceLine or cac:CreditNoteLine, the cac:Price/cac:AllowanceCharge contains at most one cbc:Amount. A document fails this fatal rule when any line has two or more such amounts. Although the message says "Item price discount", the test counts every cbc:Amount under cac:Price/cac:AllowanceCharge, without distinguishing between allowances and charges.

How to fix

For each cac:InvoiceLine or cac:CreditNoteLine, ensure that cac:Price/cac:AllowanceCharge contains no more than one cbc:Amount element. If the line has multiple price allowance or charge amounts, combine them into a single amount or remove the duplicate cac:AllowanceCharge entry.

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-SR-37.

Validate an invoice against these rules · All release changes