Value of '@unitCode' is not allowed.
The value of @unitCode on ram:ChargeFreeQuantity is not included in the code list allowed by this rule. A non-empty value must match an entry in that list.
The unit code identifies the unit of measure for the free-of-charge quantity. A code that is not allowed may prevent the quantity from being interpreted as intended.
The unit code on ram:ChargeFreeQuantity is not recognized as an allowed value. Replace it with a value permitted by the code list.
- Check the value of
@unitCodeonram:ChargeFreeQuantity. - Replace any disallowed value with an entry from the applicable code list.
- Regenerate the invoice and validate it again.
<ram:ChargeFreeQuantity unitCode="INVALID">1</ram:ChargeFreeQuantity>
<ram:ChargeFreeQuantity unitCode="C62">1</ram:ChargeFreeQuantity>
Technical details
The test accepts an empty value or a value present as @value in the code list with id 15. The error occurs when a non-empty value has no matching entry.
The rule applies to the @unitCode attribute of ram:ChargeFreeQuantity in the delivery details of an invoice line.
rule/@context)assert/@test)