In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Zero rated" the Document level allowance VAT rate (BT-96) shall be 0 (zero).
The allowance is assigned to VAT category Z for zero rating, but ram:RateApplicablePercent is not zero. For this category, the VAT rate must be exactly 0.
Category Z identifies an allowance with a zero rate. The stated VAT rate must therefore match the zero-rated treatment.
The allowance is marked as zero-rated, but its VAT rate is not zero. You can adjust the value in the allowance’s tax details.
- Open the document-level allowance details.
- Check the value of
ram:RateApplicablePercent. - Set the VAT rate to
0, for example usingAddTradeAllowance(...). - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>Z</ram:CategoryCode> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>Z</ram:CategoryCode> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:CategoryTradeTax> </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
The test requires ram:RateApplicablePercent in the matching ram:CategoryTradeTax context to be exactly 0. The context limits the check to allowances with ram:ChargeIndicator equal to false and category code Z.
The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value Z.
rule/@context)assert/@test)