Rules / IBR-SR-49
Value tax point date must occur maximum once
Value tax point date (ibt-007) must occur maximum once.
Fails
<Invoice>
…<cbc:DescriptionCode>…</cbc:DescriptionCode>
…<cbc:DescriptionCode>…</cbc:DescriptionCode>
</Invoice>
Fix
Keep one cac:InvoicePeriod/cbc:DescriptionCode 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/cbc:DescriptionCode) <=1)
Official text: Value tax point date (ibt-007) MUST occur maximum once