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