BR-CO-19

If Invoicing period (BG-14) is used, the Invoicing period start date (BT-73) or the Invoicing period end date (BT-74) shall be filled, or both.

error: the document is invalid Peppol documentation ↗

Why it fails

  • A cac:InvoicePeriod is present but empty (ram:BillingSpecifiedPeriod in CII).

How to fix it

Give the invoicing period a start date, an end date or both, or leave the element out.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
cac:InvoicePeriod
Test
exists(cbc:StartDate) or exists(cbc:EndDate) or (exists(cbc:DescriptionCode) and not(exists(cbc:StartDate)) and not(exists(cbc:EndDate)))

Checked with EN 16931 Invoice (UBL), EN 16931 Credit Note (UBL), Croatia eRačun Invoice (UBL), Croatia eRačun Credit Note (UBL)

Context
//ram:ApplicableHeaderTradeSettlement/ram:BillingSpecifiedPeriod
Test
(ram:StartDateTime) or (ram:EndDateTime)

Checked with EN 16931 Invoice (CII)