Attribute '@unitCode' is required in this context.
The unitCode attribute is missing from ram:UnitQuantity. This attribute is required in this context.
unitCode specifies the unit of measure for the quantity in ram:UnitQuantity.
The unitCode attribute is missing from ram:UnitQuantity. Add it so the unit of measure for the quantity is specified.
- Locate
ram:UnitQuantityfor the referenced product in the invoice line. - Add the
unitCodeattribute there. - Regenerate the invoice and validate it again.
<ram:UnitQuantity>2</ram:UnitQuantity>
<ram:UnitQuantity unitCode="">2</ram:UnitQuantity>
Technical details
The check requires the unitCode attribute on ram:UnitQuantity; it does not check the attribute’s permitted value here.
The rule applies to ram:UnitQuantity of a referenced product within an invoice line.
rule/@context)assert/@test)