Value of '@unitCode' is not allowed.
If ram:BasisQuantity has a value for unitCode, that value must be included in the applicable code list. A value not in the list is invalid; this test does not reject an empty value.
The unitCode attribute states the unit of measure for the basis quantity. The code list restricts permitted units to defined codes.
The unitCode of ram:BasisQuantity is not included in the applicable code list. Use a value from that list or leave the attribute empty.
- Find
ram:BasisQuantityon the invoice line’s gross price. - Compare the value of
unitCodewith the code list referenced by this rule and use a listed value or an empty value. - Regenerate the invoice and validate it again.
Technical details
The test accepts an empty value or a value listed in codedb.xml under the code list with ID 15.
The rule applies to the unitCode attribute of ram:BasisQuantity on an invoice line’s gross price.
rule/@context)assert/@test)