In a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Export outside the EU" the Document level charge VAT rate (BT-103) shall be 0 (zero).
The charge has VAT category G, but ram:RateApplicablePercent is not equal to 0. A missing rate or a rate other than zero also fails the test.
A charge with category G must have a zero VAT rate because this category denotes an export outside the EU.
The charge is marked as an export outside the EU, but its VAT rate is not zero. Adjust the charge’s rate to match this category.
- Check the charge in
ram:SpecifiedTradeAllowanceCharge. - Set
ram:RateApplicablePercentto0. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>G</ram:CategoryCode> <ram:RateApplicablePercent>5</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>G</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 compares ram:RateApplicablePercent directly with 0. It requires equality to zero, not merely a non-positive value.
The rule applies to the VAT rate ram:RateApplicablePercent of a document level charge in ram:SpecifiedTradeAllowanceCharge when the VAT category ram:CategoryTradeTax/ram:CategoryCode is G.
rule/@context)assert/@test)