Attribute '@unitCode' is required in this context.
The @unitCode attribute, which specifies the unit of the quantity per package, is missing from ram:PerPackageUnitQuantity.
The unit code associates a unit of measure with the quantity per package. Without it, the quantity is not provided together with its unit.
The quantity per package is missing its unit code. Add it so the quantity is provided together with its unit.
- Add
@unitCodetoram:PerPackageUnitQuantity. - Use a code allowed for this unit.
- Generate the invoice again and validate it again.
Technical details
The XPath test @unitCode checks whether the attribute exists on the current ram:PerPackageUnitQuantity.
The rule applies to ram:PerPackageUnitQuantity in the delivery details of an invoice line.
rule/@context)assert/@test)