Value of 'ram:TypeCode' is not allowed.
The value of ram:TypeCode is not in the designated code list. The test accepts a missing or empty value.
ram:TypeCode identifies the VAT type for the charge. A code that is not permitted cannot be classified using the designated code list.
The VAT type code for the charge is not in the designated code list. You can change the value or leave it empty.
- Find the charge in
ram:SpecifiedTradeAllowanceChargewhoseudt:Indicatoristrue. - Check the value of
ram:TypeCodeinsideram:CategoryTradeTax. - Use a value from the designated code list or leave
ram:TypeCodeempty. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:TypeCode>INVALID-CODE</ram:TypeCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:TypeCode/> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
Technical details
The test applies to charges with udt:Indicator equal to true and accepts an empty value or a value from code list cl with ID 9.
The rule applies to ram:TypeCode of ram:CategoryTradeTax for a document-level charge in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)