Value of 'ram:ReasonCode[not (@listID)]' is not allowed.
The value in ram:ReasonCode is neither empty nor included in the code list used for this check. The rule checks the value when the listID attribute is absent.
The reason for a charge is checked against a defined code list. A value not included in that list cannot be recognized as a valid charge reason.
The value given in ram:ReasonCode is not recognized as valid for this charge. This can be addressed with an empty value or a code included in the code list.
- Check the value in the charge’s
ram:ReasonCode. - Use only a code from the code list applicable to this rule, or leave the value empty.
- Generate the invoice again and validate it.
Technical details
The test passes if the resolved code is empty or appears in the enumeration with ID 29 in FACTUR-X_EXTENDED_codedb.xml. The context limits the check to charges and ram:ReasonCode without listID.
The rule applies to the ram:ReasonCode of a charge in an invoice line’s settlement when the associated udt:Indicator is true.
rule/@context)assert/@test)