An Invoice that contains an Invoice line (BG-25) where the "Subtype of invoice line item" ( BT-X-8) has the value "DETAIL" or is not specified, a Document level allowance (BG-20) or a Document level charge or tax (BG-21) or a Logistics Service Charge ( BG-X-42) where the VAT category code (BT-151, BT-95, BT-102, or BT-X-273) is “G” ("Export outside the EU") shall contain in the VAT breakdown (BG-23) at least one VAT category code (BT-118) equal with “G” ("Export outside the EU").
The tax category G appears in the checked tax information, but the VAT breakdown does not include it together with at least one matching tax entry. The check considers ram:ApplicableTradeTax at document level and on invoice lines, as well as ram:CategoryTradeTax and ram:AppliedTradeTax.
G denotes an export outside the EU. The VAT breakdown must report this tax category so that the invoice presents its VAT treatment consistently.
The invoice contains information for tax category G, but the corresponding VAT breakdown is not fully matched. You can update the invoice information so the entries correspond.
- For the affected invoice lines, check
AssociatedDocument.LineStatusReasonCode; a missing value orDETAILis considered. - Check the recorded tax categories in
TaxCategoryCodes. - Add the corresponding VAT breakdown using
AddApplicableTradeTax(...). - Generate the invoice again and validate it again.
<rsm:CrossIndustryInvoice> <ram:ApplicableHeaderTradeSettlement> <ram:ApplicableTradeTax> <ram:CategoryCode>G</ram:CategoryCode> </ram:ApplicableTradeTax> </ram:ApplicableHeaderTradeSettlement> </rsm:CrossIndustryInvoice>
<rsm:CrossIndustryInvoice> <ram:ApplicableHeaderTradeSettlement> <ram:ApplicableTradeTax> <ram:CategoryCode>G</ram:CategoryCode> </ram:ApplicableTradeTax> </ram:ApplicableHeaderTradeSettlement> <ram:SpecifiedLineTradeSettlement> <ram:ApplicableTradeTax> <ram:CategoryCode>G</ram:CategoryCode> </ram:ApplicableTradeTax> </ram:SpecifiedLineTradeSettlement> </rsm:CrossIndustryInvoice>
TaxCategoryCodes(BT-151; BT-95; BT-102; BT-118)AssociatedDocument.LineStatusReasonCode(BT-X-8)FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount)(BG-23)FacturXInvoice.AnyApplicableTradeTaxes()(BG-23)FacturXInvoice.GetApplicableTradeTaxes()(BG-23)
Technical details
The XPath expression passes if G occurs nowhere in the checked tax information. Otherwise, both a ram:ApplicableTradeTax with G under ram:ApplicableHeaderTradeSettlement and at least one matching entry in the checked line or tax-group elements must be present.
The rule applies to the invoice in rsm:CrossIndustryInvoice. It concerns the VAT breakdown in ram:ApplicableHeaderTradeSettlement and matching tax information for invoice lines and other tax groups.
rule/@context)assert/@test)