An Invoice that contains a Document level charge (BG-21) where the Document level charge VAT category code (BT-102) is "Not subject to VAT" shall not contain the Seller VAT identifier (BT-31), the Seller tax representative VAT identifier (BT-63) or the Buyer VAT identifier (BT-48).
For such a charge, the invoice contains at least one VAT identifier for the seller, the seller’s tax representative, or the buyer. The rule checks identifiers in ram:SpecifiedTaxRegistration/ram:ID with schemeID="VA".
Tax code O means “not subject to VAT.” For a charge in this category, the checked VAT identifiers for the seller, tax representative, and buyer must not be present in the invoice.
A document level charge is marked as not subject to VAT (O), while the invoice contains one of the VAT identifiers excluded for this category. You can adjust the relevant seller, tax representative, or buyer details.
- Check the charge and its tax category
O. - If needed, remove the seller VAT identifier set with
AddSellerTaxRegistration(...). - Also check the tax representative’s and buyer’s VAT identifiers; use
AddBuyerTaxRegistration(...)for the buyer. - Generate the invoice again and validate it.
<ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">DE123456789</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>true</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>O</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge>
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 all three paths to ram:SpecifiedTaxRegistration/ram:ID[@schemeID='VA'] to be empty: seller, seller’s tax representative, and buyer.
The rule applies to a document level charge in ram:SpecifiedTradeAllowanceCharge whose ram:CategoryTradeTax contains tax code O.
rule/@context)assert/@test)- 2022-11-152022-11-15 · AddedTests on interference of BR-DE-16 with BR-O-02, BR-O-03, and BR-O-04