PintLint

Rules / IBR-055

Each Preceding Invoice reference must contain a Preceding Invoice reference

Each Preceding Invoice reference (ibg-03) must contain a Preceding Invoice reference (ibt-025).

Fails

<cac:BillingReference>
  <!-- no cac:InvoiceDocumentReference/cbc:ID -->
</cac:BillingReference>

Fix

Add cac:InvoiceDocumentReference/cbc:ID to cac:BillingReference.

Schematron
Context
cac:BillingReference
Test
exists(cac:InvoiceDocumentReference/cbc:ID)

Official text: Each Preceding Invoice reference (ibg-03) MUST contain a Preceding Invoice reference (ibt-025).

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

Check your invoice for this rule