Peppol BIS Billing 3.0.20 · UBL

UBL-SR-36: Invoice line period shall occur maximum once

Peppol BIS Billing 3.0.20 · UBL

fatalschema

Original rule text

[UBL-SR-36]-Invoice line period shall occur maximum once

Stored validation assertion
(count(cac:InvoicePeriod) <= 1)

UBL-SR-36 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:InvoicePeriod element occurs at most once. The test checks that the count of cac:InvoicePeriod is less than or equal to 1. A document fails validation when any single invoice line or credit note line contains more than one cac:InvoicePeriod.

How to fix

Ensure each cac:InvoiceLine or cac:CreditNoteLine contains at most one cac:InvoicePeriod. Remove any extra cac:InvoicePeriod elements from the affected lines. If the invoice is generated from a system, adjust it so it does not output multiple line periods for the same line.

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

Validate an invoice against these rules · All release changes