An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) 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).
The charge is assigned to category AE for reverse charge, but at least one required identifier is missing: a seller or tax representative identifier on the seller side, and a VAT identifier or legal registration identifier on the buyer side. The test requires a matching identifier on both sides.
For a charge subject to reverse charge, both the seller and buyer must be identifiable through one of the identifiers allowed for their respective side. The rule ensures that the required party details for this tax treatment are present.
The charge is marked as reverse charge, but the invoice is missing required identifiers for the seller and buyer. Add one of the accepted identifiers for each side.
- Check the identifiers in
SellerTradePartyandBuyerTradeParty. - For the seller, add either an identifier with
schemeIDVAorFCusingAddSellerTaxRegistration(...), or the tax representative’s VAT identifier. - For the buyer, add either a VAT identifier using
AddBuyerTaxRegistration(...)or a legal registration identifier usingLegalOrganization.ID. - Generate the invoice again and validate it.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>AE</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">DE123456789</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty> <ram:BuyerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">DE987654321</ram:ID> </ram:SpecifiedTaxRegistration> </ram:BuyerTradeParty>
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)
Technical details
The XPath requires either a seller identifier (VA or FC) or the tax representative’s VAT identifier (VA), and additionally either the buyer’s VAT identifier (VA) or the buyer’s ram:SpecifiedLegalOrganization/ram:ID. Both grouped expressions must be satisfied; the rule context limits the check to charges in category AE.
The rule applies to a document-level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax/ram:CategoryCode has the value AE for reverse charge.
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`