BR-CO-20: If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[BR-CO-20]-If Invoice line period (BG-26) is used, the Invoice line period start date (BT-134) or the Invoice line period end date (BT-135) shall be filled, or both.
exists(cbc:StartDate) or exists(cbc:EndDate)BR-CO-20 is a fatal rule in the business layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected. It refers to BG-26, BT-134, BT-135.
What this rule requires
If an invoice line includes an Invoice period (BG-26), the rule requires that at least one of the start date (BT-134) or the end date (BT-135) is present. In UBL this means the cac:InvoicePeriod element must contain a cbc:StartDate or a cbc:EndDate; in CII the ram:BillingSpecifiedPeriod must contain a ram:StartDateTime or ram:EndDateTime. The document fails because the period element exists but has neither date.
How to fix
In the relevant line's period element (cac:InvoicePeriod / cac:CreditNoteLine/cac:InvoicePeriod in UBL, or ram:BillingSpecifiedPeriod in CII), add either a start date or an end date, or both. For UBL use cbc:StartDate and/or cbc:EndDate; for CII use ram:StartDateTime and/or ram:EndDateTime. If the line period should not be present, remove the period element instead.
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 BR-CO-20.
Validate an invoice against these rules · All release changes