Value of 'ram:ReasonCode[@listID="5153"]' is not allowed.
The value of ram:ReasonCode is not empty and is not allowed by the code list applicable to listID="5153". An empty value passes this check.
The reason code describes why the charge is applied. A disallowed code cannot identify the reason according to the intended code list.
The reason code provided for the charge is not allowed by its associated code list. You can adjust the value or leave the element empty.
- Find the
ram:ReasonCodeelement withlistID="5153"in the charge. - Compare its value with the codes allowed by this code list.
- Adjust the value or leave
ram:ReasonCodeempty. - Generate the invoice again and validate it.
Technical details
The XPath allows an empty ram:ReasonCode or requires its value to occur in the code list identified by 47.
The rule applies to ram:ReasonCode with the attribute listID="5153" within a document-level ram:SpecifiedTradeAllowanceCharge marked as a charge.
rule/@context)assert/@test)