- In a VAT breakdown (BG-23) where VAT category code (BT-118) is equal to “K” ("Intra-community supply"), 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 "Intra-community supply" (K), 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 relevant amounts for invoice lines, allowances, charges and logistics services. Only invoice lines with no ram:LineStatusReasonCode or with the value DETAIL are included; the tax category, rate, exemption code and exemption text must match the breakdown.
Code K denotes an intra-community supply. The taxable amount for this category must be consistent with its related invoice lines, allowances, charges and logistics services.
The taxable amount for the intra-community supply category does not match its related amounts. You can identify the difference by checking the included invoice lines and amounts.
- Check category
Kand the exemption details in the VAT breakdown and in the related amounts. - Compare
BasisAmountwith the relevantLineTotalAmountandActualAmountvalues; checkLineStatusReasonCodefor invoice lines. - Check the category mapping with
TaxCategoryCodesand the amounts withLineTotalAmountandActualAmount. - 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 the relevant ram:LineTotalAmount, ram:ActualAmount and ram:AppliedAmount totals, grouped by rate and matching exemption details. The permitted difference is 0.01 per included amount.
The rule applies to the VAT breakdown ram:ApplicableTradeTax in ram:ApplicableHeaderTradeSettlement when ram:CategoryCode is K and ram:TypeCode is VAT.
rule/@context)assert/@test)