Rules / IBR-097
Invoicing period must occur maximum once
Invoicing period (ibg-14) must occur maximum once.
Fails
<cac:InvoicePeriod>…</cac:InvoicePeriod>
<cac:InvoicePeriod>…</cac:InvoicePeriod>
Fix
Keep one cac:InvoicePeriod in the invoice and delete the extras. If both values matter, one of them belongs in a different field.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
(count(cac:InvoicePeriod) <= 1)
Official text: Invoicing period (ibg-14) MUST occur maximum once.