Value of 'ram:ReasonCode[@listID="5153"]' is not allowed.
The value of ram:ReasonCode with listID="5153" is not included in the permitted code list for this field. The test also accepts an empty value.
The reason for the charge must match an allowed code from the designated code list. The code assigns the charge a standardized reason.
The charge reason code is not in the code list permitted for listID="5153". Use an allowed code or leave the value empty.
- Locate
ram:ReasonCodewithlistID="5153"in the charge underram:GrossPriceProductTradePrice. - Replace the value with a code allowed by the code list, or leave the value empty.
- Generate the invoice again and validate it again.
Technical details
The test checks whether the text value of ram:ReasonCode is empty or appears as an enumeration in code list 22. The context restricts the element to listID="5153".
The rule applies to ram:ReasonCode with listID="5153" on an allowance/charge element marked as a charge within an invoice line’s gross price.
rule/@context)assert/@test)