PintLint

Rules / IBR-089

Only one invoiced object is allowed per line

Only one invoiced object (ibt-128) is allowed per line (ibg-25).

Fails

<cac:InvoiceLine>
  <cac:DocumentReference><cbc:ID>A</cbc:ID><cbc:DocumentTypeCode>130</cbc:DocumentTypeCode></cac:DocumentReference>
  <cac:DocumentReference><cbc:ID>B</cbc:ID><cbc:DocumentTypeCode>130</cbc:DocumentTypeCode></cac:DocumentReference>
</cac:InvoiceLine>

Fix

Keep one cac:DocumentReference with cbc:DocumentTypeCode 130 (the invoiced object) per line.

Schematron
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
(count(cac:DocumentReference[cbc:DocumentTypeCode = 130]) <= 1)

Official text: Only one invoiced object (ibt-128) is allowed per line (ibg-25).

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

Check your invoice for this rule