Value of 'ram:CategoryCode' is not allowed.
The value of ram:CategoryCode is not in the designated code list. The test accepts a missing or empty value.
ram:CategoryCode classifies the VAT category of the charge. A code that is not permitted cannot be assigned to the designated category.
The VAT category 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:CategoryCodeinsideram:CategoryTradeTax. - Use a value from the designated code list or leave
ram:CategoryCodeempty. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>INVALID-CODE</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode/> </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 10.
The rule applies to ram:CategoryCode of ram:CategoryTradeTax for a document-level charge in ram:SpecifiedTradeAllowanceCharge.
rule/@context)assert/@test)