Message

Unit code of price base quantity MUST be same as invoiced quantity.

Context
cac:Price/cbc:BaseQuantity[@unitCode]
Test
not($hasQuantity) or @unitCode = $quantity/@unitCode
Usage
/ ubl:Invoice / cac:InvoiceLine / cac:Price / cbc:BaseQuantity / @unitCode
/ ubl:CreditNote / cac:CreditNoteLine / cac:Price / cbc:BaseQuantity / @unitCode