Value of 'ram:ReasonCode' is not allowed.
If ram:ReasonCode 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 allowance. The code list restricts the permitted values so that the reason is represented by an accepted code.
The ram:ReasonCode provided for the allowance is not included in the applicable code list. Use a code from that list or leave the value empty.
- Find
ram:ReasonCodein the allowance 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 21.
The rule applies to ram:ReasonCode for an allowance on an invoice line’s gross price.
rule/@context)assert/@test)