Value of 'ram:ReasonCode' is not allowed.
The value of ram:ReasonCode is not included in the code list permitted for this field. The test also accepts an empty value.
The reason for the allowance on the gross price must match an allowed code from the designated code list. The code assigns the allowance a standardized reason.
The allowance reason code on the gross price is not in the permitted code list. You can adjust the field by using an allowed code or leaving it empty.
- Locate
ram:ReasonCodein the allowance underram:GrossPriceProductTradePrice. - Replace its 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 21.
The rule applies to ram:ReasonCode of an allowance within ram:GrossPriceProductTradePrice of an invoice line.
rule/@context)assert/@test)