Value of 'ram:ReasonCode[not (@listID)]' is not allowed.
The non-empty value in ram:ReasonCode without the @listID attribute is not included in the code list defined for the charge reason. An empty value also passes this specific check.
ram:ReasonCode identifies the reason for the charge. For this check, a non-empty value without @listID must come from the code list defined for it.
The code in ram:ReasonCode for the invoice line’s charge is not included in the code list defined for it. This check applies to ram:ReasonCode without the @listID attribute.
- Check ram:ReasonCode for the charge on the affected invoice line.
- Check the value of ram:ReasonCode without @listID against the codes allowed for it.
- Generate the invoice again and validate it again.
Technical details
The context restricts the check to SpecifiedTradeAllowanceCharge where ChargeIndicator is true and ram:ReasonCode has no @listID. An empty value or a value from codedb/cl[@id=12]/enumeration is accepted.
The rule applies to ram:ReasonCode without listID for a charge on an invoice line.
rule/@context)assert/@test)