An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "Reverse charge" shall contain the Seller VAT Identifier (BT-31), the Seller tax registration identifier (BT-32) and/or the Seller tax representative VAT identifier (BT-63) and the Buyer VAT identifier (BT-48) and/or the Buyer legal registration identifier (BT-47).
An allowance with VAT category AE is missing at least one required identifier. The invoice must contain either a seller VAT identifier with schemeID VA, a seller tax registration identifier with schemeID FC, or a tax representative VAT identifier. It must also contain either a buyer VAT identifier with schemeID VA or a buyer identifier in ram:SpecifiedLegalOrganization/ram:ID.
For Reverse Charge, identifiers for the seller or the seller’s tax representative and for the buyer must be present in the designated invoice groups. The test requires at least one seller-side identifier and at least one of the two buyer identifiers.
The allowance is marked with category AE for Reverse Charge, but a required seller-side or buyer identifier is missing. Add the missing information to the appropriate invoice group.
- Check the
AEvalue in the allowance’sram:CategoryCode. - Provide a seller identifier with
schemeIDVAorFC, or the tax representative’s VAT identifier withschemeIDVA, usingAddSellerTaxRegistration(...)or the corresponding registration data. - Provide the buyer’s VAT identifier using
AddBuyerTaxRegistration(...), or a buyer identifier inLegalOrganization.ID. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> </ram:CategoryTradeTax> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">SELLER-VAT</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty> <ram:BuyerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">BUYER-VAT</ram:ID> </ram:SpecifiedTaxRegistration> </ram:BuyerTradeParty> </ram:SpecifiedTradeAllowanceCharge>
LegalOrganization.ID(SellerTradeParty: BT-31; SellerTradeParty: BT-32; BuyerTradeParty: BT-47; SellerTaxRepresentativeTradeParty: BT-63)TaxRegistration.SchemeID(For Seller VAT identifier: BT-31; For Seller tax registration identifier: BT-32)FacturXInvoice.AddBuyerTaxRegistration(no, schemeID)(BT-48)FacturXInvoice.AddSellerTaxRegistration(no, schemeID)(BT-31)FacturXInvoice.BuyerTaxRegistration(BT-48)
On the seller side, a seller VAT identifier (VA), a seller tax registration identifier (FC), or the tax representative’s VAT identifier (VA) is sufficient. On the buyer side, either a buyer VAT identifier (VA) or a buyer identifier in ram:SpecifiedLegalOrganization/ram:ID is sufficient.
Technical details
The XPath test joins two conditions with and: a seller identifier (VA or FC) or a tax representative VAT identifier (VA), and a buyer VAT identifier (VA) or a ram:SpecifiedLegalOrganization/ram:ID.
The rule applies to a document-level allowance in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode is AE. It checks identifiers for the seller or the seller’s tax representative, and for the buyer.
rule/@context)assert/@test)- 2024-06-202024-06-20 · AddedCEN unexpected tests on BR-AE-02, BR-AE-03, and BR-AE-04 with BT-32 and no BT-31 in CII
- 2024-06-202024-06-20 · Changedtests on BR-AE-02, BR-AE-03, and BR-AE-04 moved from `src/test/unexpected` to `src/test/cen-unit-tests`