Value of 'ram:ReasonCode' is not allowed.
The value of ram:ReasonCode is not in the designated code list. The test accepts a missing or empty value.
ram:ReasonCode assigns a standardized code to the reason for the allowance. A code that is not permitted cannot be matched to an entry in the designated code list.
The reason code for the allowance is not in the designated code list. You can change the value or leave it empty.
- Find the allowance in
ram:SpecifiedTradeAllowanceChargewhoseudt:Indicatorisfalse. - Check the value of
ram:ReasonCode. - Use a value from the designated code list or leave
ram:ReasonCodeempty. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ReasonCode>INVALID-CODE</ram:ReasonCode> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:ReasonCode/> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test applies to allowances with udt:Indicator equal to false and accepts an empty value or a value from code list cl with ID 29.
The rule applies to ram:ReasonCode of a document-level allowance in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)