PintLint

Rules / IBR-110

Invoice line period must occur maximum once

Invoice line period (ibg-26) must occur maximum once.

Fails

<cac:InvoiceLine>
  <cac:InvoicePeriod>…</cac:InvoicePeriod>
  <cac:InvoicePeriod>…</cac:InvoicePeriod>
</cac:InvoiceLine>

Fix

Keep one cac:InvoicePeriod in cac:InvoiceLine and delete the extras. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
(count(cac:InvoicePeriod) <= 1)

Official text: Invoice line period (ibg-26) MUST occur maximum once.

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

Check your invoice for this rule