- 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), but only for lines where the "Subtype of invoice item" (BT-X-8) has the value "DETAIL" or is not specified.
The taxable amount ram:BasisAmount does not reconcile within the allowed rounding tolerance with the net sum of the corresponding invoice lines, allowances, charges, and logistics service fees. Only invoice lines with tax code K and status DETAIL or no status are included.
Code K identifies intra-community supplies. The amount in the VAT breakdown must correctly summarize the corresponding invoice components.
The amount for intra-community supplies in the VAT breakdown does not match the total of the related invoice components. Comparing the included amounts can help identify the difference.
- Compare
ram:BasisAmountwith the included invoice line amounts, allowances, charges, and logistics service fees. - Check
TaxCategoryCodesfor tax codeK, and checkLineStatusReasonCodeandLineTotalAmountfor the invoice lines. - For allowances and charges, check
AbstractTradeAllowanceCharge.ActualAmount; include only lines with statusDETAILor no status. - 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 net sum of amounts selected by tax code and rate. Amounts are rounded to two decimal places; the permitted difference is 0.01 multiplied by the number of included items.
The rule applies to ram:ApplicableTradeTax within ram:ApplicableHeaderTradeSettlement when ram:CategoryCode is K and ram:TypeCode is VAT.
rule/@context)assert/@test)