Rules / IBR-CO-20
IBR-CO-20 error
If Invoice line period must be filled, or both
If Invoice line period (ibg-26) is used, the Invoice line period start date (ibt-134) or the Invoice line period end date (ibt-135) must be filled, or both.
Fails
<cac:InvoicePeriod>
<!-- cbc:StartDate or cbc:EndDate missing -->
</cac:InvoicePeriod>
Fix
Add cbc:StartDate or cbc:EndDate.
Schematron
- Context
cac:InvoiceLine/cac:InvoicePeriod | cac:CreditNoteLine/cac:InvoicePeriod- Test
exists(cbc:StartDate) or exists(cbc:EndDate)
Official text: If Invoice line period (ibg-26) is used, the Invoice line period start date (ibt-134) or the Invoice line period end date (ibt-135) MUST be filled, or both.