Peppol BIS Billing 3.0.20 · UBL

UBL-SR-30: Document level allowance reason shall occur maximum once

Peppol BIS Billing 3.0.20 · UBL

fatalschema

Original rule text

[UBL-SR-30]-Document level allowance reason shall occur maximum once

Stored validation assertion
(count(cbc:AllowanceChargeReason) <= 1)

UBL-SR-30 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 applies to document-level allowance charges, i.e. cac:AllowanceCharge where cbc:ChargeIndicator is false. The test requires that there is at most one cbc:AllowanceChargeReason within such an element. A document fails this fatal rule if more than one allowance reason is present.

How to fix

In the document-level cac:AllowanceCharge[cbc:ChargeIndicator = false()], ensure that cbc:AllowanceChargeReason occurs at most once. If multiple reasons are present, remove or consolidate the extra cbc:AllowanceChargeReason elements.

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-30.

Validate an invoice against these rules · All release changes