Message

[BR-23]-An Invoice line (BG-25) shall have an Invoiced quantity unit of measure code (BT-130).

Context
cac:InvoiceLine | cac:CreditNoteLine
Test
exists(cbc:InvoicedQuantity/@unitCode) or exists(cbc:CreditedQuantity/@unitCode)
Usage
/ ubl:Invoice / cac:InvoiceLine / cbc:InvoicedQuantity / @unitCode
/ ubl:CreditNote / cac:CreditNoteLine / cbc:CreditedQuantity / @unitCode