In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" the Document level allowance VAT rate (BT-96) shall be 0 (zero).
The VAT rate in ram:RateApplicablePercent for the reverse-charge allowance is not equal to 0. For this category, the stated rate must be zero.
VAT category AE represents reverse charge; the corresponding VAT rate for the allowance must be zero.
A VAT rate other than zero is entered for an allowance with category AE. Adjust the rate for this allowance.
- Find the allowance with category
AE. - Set its VAT rate to
0usingAddTradeAllowance(...). - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> </ram:CategoryTradeTax> <ram:RateApplicablePercent>20</ram:RateApplicablePercent> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> </ram:CategoryTradeTax> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:SpecifiedTradeAllowanceCharge>
TaxCategoryCodes(BT-95)FacturXInvoice.AddTradeAllowance(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-20)FacturXInvoice.GetTradeAllowances()(BG-20)FacturXInvoice.TradeAllowanceCharges(BG-20)AbstractTradeAllowanceCharge(Document level allowance: BG-20)
Technical details
In the context of the reverse-charge allowance, the test checks whether ram:RateApplicablePercent is numerically equal to 0.
The rule applies to a document-level allowance identified as an allowance by ram:ChargeIndicator and as reverse charge by ram:CategoryCode with AE.
rule/@context)assert/@test)