Rules / IBR-097
IBR-097 error
Invoicing period must occur maximum once
Invoicing period (ibg-14) must occur maximum once.
Fails
<Invoice>
<cac:InvoicePeriod>…</cac:InvoicePeriod>
<cac:InvoicePeriod>…</cac:InvoicePeriod>
</Invoice>
Fix
Keep a single cac:InvoicePeriod here and delete the duplicates. 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.