VRBL-INV-PEPPOL-RS-29

Basic Info

Rule The Item Price Base Quantity Unit of Measure Code code must be same as the Invoiced Quantity Unit of Measure Code.
Context /ubl:Invoice/cac:InvoiceLine/cac:Price/cbc:BaseQuantity
Pattern vrbl-invoice-peppol-bis3p0-reduced-syntax
Severity fatal

Implementation

not(boolean(@unitCode))
or
@unitCode = /ubl:Invoice/cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode