In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Exempt from VAT", the Document level charge VAT rate (BT-103) shall be 0 (zero).
The charge is assigned to VAT category E for supplies exempt from VAT, but ram:RateApplicablePercent is not zero. For this category, the VAT rate must be exactly 0.
Category E identifies a charge exempt from VAT. The VAT rate must therefore be zero so that the stated value matches the tax category.
The charge is marked as exempt from VAT, but its VAT rate is not zero. You can adjust the value in the charge’s tax details.
- Open the document-level charge details.
- Check the value of
ram:RateApplicablePercent. - Set the VAT rate to
0, for example usingAddTradeCharge(...). - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>E</ram:CategoryCode> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>E</ram:CategoryCode> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
TaxCategoryCodes(BT-102)FacturXInvoice.AddTradeCharge(basisAmount, currency, actualAmount, chargePercentage, reason, taxTypeCode, taxCategoryCode, taxPercent, reasonCode)(BG-21)FacturXInvoice.GetTradeCharges()(BG-21)AbstractTradeAllowanceCharge(Document level charge: BG-21)AbstractTradeAllowanceCharge.ChargeIndicator(Document level charge: BG-21)
Technical details
The test requires ram:RateApplicablePercent in the matching ram:CategoryTradeTax context to be exactly 0. The context limits the check to charges with ram:ChargeIndicator equal to true and category code E.
The rule applies to a document-level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value E.
rule/@context)assert/@test)