Attribute '@unitCode' is required in this context.
The unitCode attribute is missing from ram:UnitQuantity. As a result, the unit for the stated quantity is not specified.
The unit code describes the unit in which the referenced product quantity is stated. Without it, the quantity cannot be fully interpreted.
The unit for the referenced product quantity is missing. Add the unit code so the quantity is clear.
- Locate
ram:UnitQuantityin the referenced product on the invoice line. - Add the
unitCodeattribute with the unit code for the quantity. - Generate the invoice again and validate it again.
<ram:UnitQuantity>2</ram:UnitQuantity>
<ram:UnitQuantity unitCode="…">2</ram:UnitQuantity>
Technical details
The test checks whether the unitCode attribute is present on ram:UnitQuantity.
This rule applies to ram:UnitQuantity of a referenced product on an invoice line.
rule/@context)assert/@test)