Value of 'ram:ReasonCode[not (@listID)]' is not allowed.
A non-empty value in this ram:ReasonCode is not included in the designated value list. An empty value passes this check.
ram:ReasonCode states the reason for the charge. When listID is absent, the code is checked against the designated value list for this case.
The reason code for the charge on the invoice line is not in the designated value list. This check applies to ram:ReasonCode without the listID attribute.
- Check
ram:ReasonCodefor the charge whoseram:ChargeIndicatorhas the valuetrueand which has nolistID. - For a non-empty value, use an entry from the designated value list.
- Generate the invoice again and validate it.
Technical details
The test permits an empty code value; otherwise, it checks the value against the enumeration in code list 29.
The rule applies to ram:ReasonCode of a charge on an invoice line where ram:ChargeIndicator has the value true and the element has no listID attribute.
rule/@context)assert/@test)