PintLint

Rules / IBR-CO-20

If Invoice line period is used, the Invoice line period start date or the Invoice line period end date 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>
  <!-- no cbc:StartDate and no cbc:EndDate -->
</cac:InvoicePeriod>

Fix

Add cbc:StartDate or cbc:EndDate to cac:InvoiceLine/cac:InvoicePeriod.

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.

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check your invoice for this rule