Attribute '@unitCode' is required in this context.
The unitCode attribute is missing from ram:PerPackageUnitQuantity. As a result, the unit for the specified value is not identified.
The value describes a quantity per package unit. The unitCode attribute identifies the unit in which that quantity is expressed.
No unit is specified for the package quantity in an invoice line’s delivery information. You can resolve this by providing the unit.
- Add
unitCodeto theram:PerPackageUnitQuantityelement. - Generate the invoice again and validate it once more.
<ram:PerPackageUnitQuantity>2</ram:PerPackageUnitQuantity>
<ram:PerPackageUnitQuantity unitCode="C62">2</ram:PerPackageUnitQuantity>
Technical details
The test checks whether the unitCode attribute is present on ram:PerPackageUnitQuantity.
The rule applies to ram:PerPackageUnitQuantity in the delivery information for an invoice line.
rule/@context)assert/@test)