- 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), 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 relevant invoice line, allowance, charge and logistics amounts. Only invoice lines with no ram:LineStatusReasonCode or with the value DETAIL are included; the amounts are selected using category L and the breakdown’s rate.
Code L denotes Canary Islands tax. The taxable amount must match the amounts assigned to this category and its rate.
The taxable amount for Canary Islands tax does not match its related invoice lines and amounts. Only invoice lines without a status reason or with status DETAIL are checked.
- Check
BasisAmountin the VAT breakdown for categoryL. - Compare it with the related
LineTotalAmount,ActualAmountandAppliedAmountvalues. - Check the category with
TaxCategoryCodesand the invoice 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 sums ram:LineTotalAmount, ram:ActualAmount and ram:AppliedAmount for category L and the breakdown’s rate. Lines are filtered for an absent ram:LineStatusReasonCode or DETAIL; 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)