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 a category K VAT breakdown, the country entry CountryID is missing from the delivery address of ShipToTradeParty. The delivery country BT-80 must not be blank.
The delivery country identifies the country of the delivery address. This information is required when the VAT breakdown is marked as an intra-community supply.
No country is entered in the delivery address, although the VAT breakdown indicates an intra-community supply. Add the country to the delivery address.
- Add
CountryIDunderShipToTradeParty/PostalTradeAddress. - Check the value of the
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
For CategoryCode K, the test checks whether CountryID is present under ShipToTradeParty/PostalTradeAddress.
The rule applies to a VAT breakdown ApplicableTradeTax with CategoryCode K and checks the country in the delivery address at ShipToTradeParty/PostalTradeAddress.
rule/@context)assert/@test)