Attribute '@unitCode' is required in this context.
The @unitCode attribute is missing from ram:PackageQuantity. Without it, the unit of the package quantity is not specified.
The unit code specifies the unit of measure used for the package quantity. It enables the quantity to be interpreted unambiguously.
The unit is missing for the package quantity in ram:PackageQuantity. Add the unit code so the quantity is unambiguous.
- Add
@unitCodetoram:PackageQuantity. - Enter the unit code that corresponds to the quantity.
- Regenerate the invoice and validate it again.
<ram:PackageQuantity>1</ram:PackageQuantity>
<ram:PackageQuantity unitCode="C62">1</ram:PackageQuantity>
Technical details
The Schematron check requires the @unitCode attribute to be present on the current ram:PackageQuantity element.
The rule applies to ram:PackageQuantity in the delivery details of an invoice line.
rule/@context)assert/@test)