In a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Standard rated" the Document level allowance VAT rate (BT-96) shall be greater than zero.
The allowance is assigned to VAT category S for standard rating, but the value of ram:RateApplicablePercent is not greater than zero. This category requires a positive VAT rate.
An allowance in category S is standard-rated. A positive VAT rate is required so the allowance is stated with a rate for this category.
The allowance is marked as standard-rated, but its VAT rate is zero or negative. You can enter a positive value in the allowance’s tax details.
- Open the document-level allowance details.
- Check the value of
ram:RateApplicablePercent. - Set a value greater than zero for the allowance, for example using
AddTradeAllowance(...). - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>S</ram:CategoryCode> <ram:RateApplicablePercent>0</ram:RateApplicablePercent> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>S</ram:CategoryCode> <ram:RateApplicablePercent>19</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 greater than 0. The context limits the check to allowances with ram:ChargeIndicator equal to false and category code S.
The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value S.
rule/@context)assert/@test)