An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Intra-community supply" shall contain the Seller VAT Identifier (BT-31) or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48).
For this allowance, the invoice must contain either the seller’s VAT identifier or the tax representative’s VAT identifier. It must also contain the buyer’s VAT identifier. The rule is not met if any of these required identifiers is missing.
Category K identifies an intra-community supply. The rule therefore requires a VAT identifier on the seller side, either for the seller or the seller’s tax representative, as well as a VAT identifier for the buyer.
The allowance is marked as an intra-community supply, but at least one required VAT identifier is missing. You can resolve this by providing the required seller-side and buyer identifiers.
- Add the buyer’s VAT identifier using
AddBuyerTaxRegistration(...). - Add either the seller’s VAT identifier using
AddSellerTaxRegistration(...)or the tax representative’s VAT identifier. - Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>K</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">SELLER</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>K</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">SELLER</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty> <ram:BuyerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">BUYER</ram:ID> </ram:SpecifiedTaxRegistration> </ram:BuyerTradeParty>
LegalOrganization.ID(SellerTradeParty: BT-31; SellerTaxRepresentativeTradeParty: BT-63)FacturXInvoice.AddBuyerTaxRegistration(no, schemeID)(BT-48)FacturXInvoice.AddSellerTaxRegistration(no, schemeID)(BT-31)FacturXInvoice.BuyerTaxRegistration(BT-48)FacturXInvoice.GetBuyerTaxRegistration()(BT-48)
Technical details
The test requires at least one ID with schemeID='VA' under SellerTradeParty or SellerTaxRepresentativeTradeParty, and an additional such ID under BuyerTradeParty.
The rule applies to a document level allowance under SpecifiedTradeAllowanceCharge whose CategoryCode is K.
rule/@context)assert/@test)