The VAT category tax amount (BT-117) in a VAT breakdown (BG-23) where VAT category code (BT-118) is "Standard rated" shall equal the VAT category taxable amount (BT-116) multiplied by the VAT category rate (BT-119).
The amount in CalculatedAmount does not match the VAT amount calculated from BasisAmount and RateApplicablePercent. The test compares absolute values and allows a difference of less than one unit.
For category S, the VAT amount must be based on the taxable amount and the stated rate. This keeps the tax amount and taxable basis in the VAT breakdown arithmetically consistent.
The VAT amount does not match the taxable basis and rate in this VAT breakdown. Adjust the tax details so that they are arithmetically consistent.
- Review the tax details in
AddApplicableTradeTax(...). - Align
CalculatedAmountwithBasisAmountandRateApplicablePercent. - Generate the invoice again and validate it.
<ram:ApplicableTradeTax> <ram:CategoryCode>S</ram:CategoryCode> <ram:BasisAmount>100</ram:BasisAmount> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> <ram:CalculatedAmount>10</ram:CalculatedAmount> </ram:ApplicableTradeTax>
<ram:ApplicableTradeTax> <ram:CategoryCode>S</ram:CategoryCode> <ram:BasisAmount>100</ram:BasisAmount> <ram:RateApplicablePercent>19</ram:RateApplicablePercent> <ram:CalculatedAmount>19</ram:CalculatedAmount> </ram:ApplicableTradeTax>
TaxCategoryCodes(BT-118)FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount)(BG-23)FacturXInvoice.AnyApplicableTradeTaxes()(BG-23)FacturXInvoice.GetApplicableTradeTaxes()(BG-23)FacturXInvoice.Taxes(BG-23)
Technical details
The test multiplies BasisAmount by RateApplicablePercent, rounds the result and compares it with the absolute value of CalculatedAmount, allowing a tolerance of less than one unit.
The rule applies to CalculatedAmount, BasisAmount and RateApplicablePercent in a VAT breakdown ApplicableTradeTax with CategoryCode S.
rule/@context)assert/@test)- 2023-05-122023-05-12 · AddedTest for BR-CO-17 and BR-S-09 rounding rules in UBL
- 2023-05-122023-05-12 · ChangedTests for BR-CO-17 and BR-S-09 rounding rules in CII merged