In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Deliver to country code (BT-80) shall not be blank.
For an intra-community supply with category code K, the delivery country code is missing from ram:CountryID under ram:ShipToTradeParty/ram:PostalTradeAddress.
Code K identifies an intra-community supply. The delivery country code is required to identify the destination of this supply.
The country to which the intra-community supply is delivered is missing. Add the country code at the delivery address.
- Find the delivery address under
ram:ShipToTradeParty/ram:PostalTradeAddress. - Add
ram:CountryIDthere. - Check the
Party.Countryproperty forShipToTradeParty. - Generate the invoice again and validate it.
<ram:ShipToTradeParty> <ram:PostalTradeAddress/> </ram:ShipToTradeParty>
<ram:ShipToTradeParty> <ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress> </ram:ShipToTradeParty>
Party.Country(ShipToTradeParty: BT-80)TaxCategoryCodes(BT-118)FacturXInvoice.AddApplicableTradeTax(basisAmount, percent, taxAmount, typeCode, categoryCode, allowanceChargeBasisAmount, exemptionReasonCode, exemptionReason, lineTotalBasisAmount)(BG-23)FacturXInvoice.AnyApplicableTradeTaxes()(BG-23)FacturXInvoice.GetApplicableTradeTaxes()(BG-23)
Technical details
The test checks for the absolute path to ram:CountryID under ram:ShipToTradeParty; it does not prescribe a particular country value.
The rule applies to invoices with a VAT breakdown ram:ApplicableTradeTax and ram:CategoryCode K. It checks the country code in ram:ShipToTradeParty/ram:PostalTradeAddress/ram:CountryID.
rule/@context)assert/@test)