PintLint

Rules / IBR-022

Each Invoice line must have an invoiced quantity

Each Invoice line (ibg-25) must have an invoiced quantity (ibt-129)..

Fails

<cac:InvoiceLine>
  <!-- no cbc:InvoicedQuantity and no cbc:CreditedQuantity -->
</cac:InvoiceLine>

Fix

Add cbc:InvoicedQuantity or cbc:CreditedQuantity to cac:InvoiceLine.

Schematron
Context
cac:InvoiceLine | cac:CreditNoteLine
Test
exists(cbc:InvoicedQuantity) or exists(cbc:CreditedQuantity)

Official text: Each Invoice line (ibg-25) MUST have an invoiced quantity (ibt-129)..

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

Check your invoice for this rule