Value of 'ram:ReasonCode[@listID="5153"]' is not allowed.
If ram:ReasonCode with listID 5153 contains a value, that value must be included in the code list referenced by this rule. A value not in the list is invalid; this test does not reject an empty value.
The reason code assigns a reason to the charge. The code list associated with listID 5153 restricts the permitted values so that the reason is represented by an accepted code.
The ram:ReasonCode with listID 5153 provided for the charge is not included in the applicable code list. Use a code from that list or leave the value empty.
- Find
ram:ReasonCodewithlistID5153in the charge on the invoice line’s gross price. - Compare its value with 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 22. The context limits the checked element to ram:ReasonCode[@listID="5153"].
The rule applies to ram:ReasonCode with listID 5153 for a charge on an invoice line’s gross price.
rule/@context)assert/@test)