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.
Why it fails
- A
cac:InvoicePeriodis present but empty (ram:BillingSpecifiedPeriodin 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.
cac:InvoicePeriod
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)
//ram:ApplicableHeaderTradeSettlement/ram:BillingSpecifiedPeriod
(ram:StartDateTime) or (ram:EndDateTime)
Checked with EN 16931 Invoice (CII)