Value of 'ram:ReasonCode' is not allowed.
The non-empty value in ram:ReasonCode is not included in the code list defined for the allowance reason. An empty value also passes this specific check.
ram:ReasonCode identifies the reason for the allowance. A non-empty value must come from the code list defined for this reason.
The code in ram:ReasonCode for the invoice line’s allowance is not included in the code list defined for it. An allowed code identifies the allowance reason correctly.
- Check ram:ReasonCode for the allowance on the affected invoice line.
- Compare the non-empty value with the codes allowed for allowance reasons.
- Generate the invoice again and validate it again.
Technical details
The context restricts the check to SpecifiedTradeAllowanceCharge where ChargeIndicator is false. An empty value or a value from codedb/cl[@id=11]/enumeration is accepted.
The rule applies to ram:ReasonCode of an allowance on an invoice line.
rule/@context)assert/@test)