Value of 'ram:ReasonCode[not (@listID)]' is not allowed.
When ram:ReasonCode has no @listID attribute, its value must be empty or included in the designated code list. The current value does not meet this condition.
ram:ReasonCode assigns a standardized code to the reason for the charge. Without @listID, the value is checked against the code list designated for this rule.
The reason code for the charge, which has no list identifier, is not in the designated code list. You can change the value or leave it empty.
- Find the charge in
ram:SpecifiedTradeAllowanceChargewhoseudt:Indicatoristrue. - Check
ram:ReasonCode, which must not have a@listIDattribute. - 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>true</udt:Indicator> </ram:ChargeIndicator> <ram:ReasonCode>INVALID-CODE</ram:ReasonCode> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:ReasonCode/> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test applies to charges with udt:Indicator equal to true and ram:ReasonCode without @listID. It accepts an empty value or a value from code list cl with ID 30.
The rule applies to ram:ReasonCode of a document-level charge in ram:SpecifiedTradeAllowanceCharge when ram:ReasonCode has no @listID attribute.
rule/@context)assert/@test)