PintLint

Rules / IBR-088

Unit code of price base quantity must be same as invoiced quantity

Unit code of price base quantity (ibt-150) must be same as invoiced quantity (ibt-130).

Fails when this is false

not(../../cbc:InvoicedQuantity or ../../cbc:CreditedQuantity) or (@unitCode = ../../cbc:InvoicedQuantity/@unitCode) or (@unitCode = ../../cbc:CreditedQuantity/@unitCode)

The schematron test, verbatim. Context: cac:Price/cbc:BaseQuantity[@unitCode]

Fix

Change the data so the condition below holds. It reads cbc:CreditedQuantity, cbc:InvoicedQuantity, @unitCode. Paste the invoice into the validator to see the exact element that fails.

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

Check your invoice for this rule