For each different value of VAT category rate (BT-119) where the VAT category code (BT-118) is "IGIC", the VAT category taxable amount (BT-116) in a VAT breakdown (BG-23) shall equal the sum of Invoice line net amounts (BT-131) plus the sum of document level charge amounts (BT-99) minus the sum of document level allowance amounts (BT-92) where the VAT category code (BT-151, BT-102, BT-95) is "IGIC" and the VAT rate (BT-152, BT-103, BT-96) equals the VAT category rate (BT-119).
For at least one rate specified in the VAT breakdown with category L, ram:BasisAmount does not exactly equal the sum of the net amounts of invoice lines with category L and that rate, plus the corresponding document-level charges and minus the corresponding allowances.
L denotes IGIC. The taxable amount must be calculated separately for each IGIC rate from amounts with the same category and rate.
For at least one IGIC rate, the taxable amount does not match the associated invoice lines and document-level allowances or charges. You can correct the amounts and rate matching.
- For each
ram:RateApplicablePercentin categoryL, check the correspondingram:BasisAmount. - Compare the taxable amount with
TradeLineItem.LineTotalAmountandAbstractTradeAllowanceCharge.ActualAmountvalues for the same rate. - For invoice lines, check the assignment using
TradeLineItem.TaxCategoryCodeandTradeLineItem.TaxPercent. - Generate the invoice again and validate it once more.
<ram:ApplicableTradeTax> <ram:CategoryCode>L</ram:CategoryCode> <ram:RateApplicablePercent>7</ram:RateApplicablePercent> <ram:BasisAmount>99.00</ram:BasisAmount> </ram:ApplicableTradeTax> <ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeSettlement> <ram:ApplicableTradeTax> <ram:CategoryCode>L</ram:CategoryCode> <ram:RateApplicablePercent>7</ram:RateApplicablePercent> </ram:ApplicableTradeTax> <ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:LineTotalAmount>100.00</ram:LineTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation> </ram:SpecifiedLineTradeSettlement> </ram:IncludedSupplyChainTradeLineItem>
<ram:ApplicableTradeTax> <ram:CategoryCode>L</ram:CategoryCode> <ram:RateApplicablePercent>7</ram:RateApplicablePercent> <ram:BasisAmount>100.00</ram:BasisAmount> </ram:ApplicableTradeTax> <ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeSettlement> <ram:ApplicableTradeTax> <ram:CategoryCode>L</ram:CategoryCode> <ram:RateApplicablePercent>7</ram:RateApplicablePercent> </ram:ApplicableTradeTax> <ram:SpecifiedTradeSettlementLineMonetarySummation> <ram:LineTotalAmount>100.00</ram:LineTotalAmount> </ram:SpecifiedTradeSettlementLineMonetarySummation> </ram:SpecifiedLineTradeSettlement> </ram:IncludedSupplyChainTradeLineItem>
TaxCategoryCodes(BT-151; BT-95; BT-102; BT-118)AbstractTradeAllowanceCharge.ActualAmount(Document level allowance: BT-92; Document level charge: BT-99)TradeLineItem.LineTotalAmount(BT-131)TradeLineItem.TaxCategoryCode(BT-151)TradeLineItem.TaxPercent(BT-152)
Technical details
The test iterates over each decimal value of ram:RateApplicablePercent in the header breakdown and requires exact equality for each rate against the calculation of line amounts, charges, and allowances rounded to two decimal places.
The rule applies to each distinct rate in ram:RateApplicablePercent of a VAT breakdown ram:ApplicableTradeTax with category L. It compares invoice lines and document-level allowances and charges with the same category and rate.
rule/@context)assert/@test)