An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) 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 an allowance with category O, the invoice contains a VAT identifier for the seller, tax representative, or buyer. The test requires that none of these VAT identifiers be present.
Category O denotes a transaction not subject to VAT. In this case, the rule excludes the three VAT identifiers explicitly checked.
The allowance is marked with category O, but at least one of the checked VAT identifiers is present. For this category, the seller’s, tax representative’s, and buyer’s VAT identifiers must not be included.
- Check the seller’s VAT identifier and remove it, if present, using
AddSellerTaxRegistration(...). - Check the buyer’s VAT identifier and remove it, if present, using
AddBuyerTaxRegistration(...). - Also remove the tax representative’s VAT identifier, if present.
- Generate the invoice again and validate it again.
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>O</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>O</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge> <ram:SellerTradeParty/> <ram:SellerTaxRepresentativeTradeParty/> <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 that no ID with schemeID='VA' be present under SellerTradeParty, SellerTaxRepresentativeTradeParty, or BuyerTradeParty.
The rule applies to a document level allowance under SpecifiedTradeAllowanceCharge with CategoryCode O. It checks the VAT identifiers of the seller, tax representative, and buyer.
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