PintLint

Rules / IBR-088

IBR-088 error

Unit code of price base 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 statement above is true. Paste the invoice into the validator to see the exact element that fails.

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

Check an invoice