In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Export outside the EU" the Document level allowance VAT rate (BT-96) shall be 0 (zero).
For an allowance in category G, ram:RateApplicablePercent is not zero. The allowance rate for this category must be zero.
Code G denotes export outside the EU. The rule requires the rate for this allowance entry to be zero.
The allowance is marked G for export outside the EU, but its rate is not zero. Update the allowance rate to meet this requirement.
- Check the
Gvalue in the allowance’sram:CategoryCode. - Check the tax rate passed to
AddTradeAllowance(...). - Ensure that
ram:RateApplicablePercenthas the value0. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>G</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>G</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 XPath test checks whether ram:RateApplicablePercent has the numeric value 0. The context restricts it to an allowance entry in category G.
The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode is G.
rule/@context)assert/@test)