- In a VAT breakdown (BG-23) where VAT category code (BT-118) is equal to “L” ("Canary Islands tax"), Absolute Value of (VAT category taxable amount (BT-116) - ∑ Invoice line net amounts (BT-131) + Σ Document level allowance amounts (BT-92) - Σ Document level charge amounts (BT-99) - Σ Logistics Service fee amounts (BT-x-272)) <= 0,01 * ((Number of line net amounts (BT-131) + Number of Document level allowance amounts (BT-92) + Number of Document level charge amounts (BT-99) + Number of Logistics Service fee amounts (BT-X-272)), where the VAT category code (BT-151, BT-95, BT-102, BT-X-273) is "Canary Islands tax" (L), and where applicable the VAT exemption reason and specification code (BT-195, BT-174 and BT-176 and BT-X-592) and the Exemption reason text (BT-194, BT-173 and BT-175 and BT-X-591) are identical with the VAT category VAT exemption reason and specification code (BT-121) and VAT exemption reason text (BT-120), but only for lines where the "Subtype of invoice item" (BT-X-8) has the value "DETAIL" or is not specified.
The amount in ram:BasisAmount does not reconcile within the permitted rounding tolerance with the amounts for matching invoice lines, allowances, charges and logistics services. Invoice lines with no ram:LineStatusReasonCode or with DETAIL are included; category, rate, exemption code and exemption text must match the breakdown.
Code L denotes Canary Islands tax. For a correct VAT breakdown, only amounts with the matching category, rate and exemption details may contribute to the taxable amount.
The taxable amount for Canary Islands tax does not match its related amounts. The reconciliation includes only invoice lines with matching tax and exemption details.
- Check
BasisAmountand the exemption details in the VAT breakdown forL. - Compare these details with the tax information for the related invoice lines, allowances, charges and logistics services.
- Check the amounts with
LineTotalAmountandActualAmount, and the line status withLineStatusReasonCode. - Generate the invoice again and validate it.
TaxCategoryCodes(BT-151; BT-95; BT-102; BT-118)AbstractTradeAllowanceCharge.ActualAmount(Document level allowance: BT-92; Document level charge: BT-99)AssociatedDocument.LineStatusReasonCode(BT-X-8)LineStatusReasonCodes(BT-X-8)TradeLineItem.LineTotalAmount(BT-131)
Technical details
The test compares ram:BasisAmount with rounded totals from ram:LineTotalAmount, ram:ActualAmount and ram:AppliedAmount. Matching uses category L, rate and normalized exemption details; the tolerance is 0.01 per included amount.
The rule applies to the VAT breakdown ram:ApplicableTradeTax in ram:ApplicableHeaderTradeSettlement when ram:CategoryCode is L and ram:TypeCode is VAT.
rule/@context)assert/@test)