An Invoice that contains a Document level allowance (BG-20) where the Document level allowance VAT category code (BT-95) is "IGIC" 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).
For an allowance with category L, a qualifying seller-side tax identifier is missing. The invoice must contain a seller ID with schemeID VA or FC, or an ID with schemeID VA for the tax representative.
Category L denotes IGIC. For this allowance, the rule requires at least one of the seller tax registrations covered by the test, or the tax representative’s VAT identifier.
None of the required tax identifiers is present for the allowance with category L. You can provide the identifier for the seller or the tax representative.
- Add a seller tax identifier with
schemeIDVAorFCusingAddSellerTaxRegistration(...). - Alternatively, add 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>L</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="XX">SELLER</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
<ram:SpecifiedTradeAllowanceCharge> <ram:ChargeIndicator> <udt:Indicator>false</udt:Indicator> </ram:ChargeIndicator> <ram:CategoryTradeTax> <ram:CategoryCode>L</ram:CategoryCode> </ram:CategoryTradeTax> </ram:SpecifiedTradeAllowanceCharge> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">SELLER</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
LegalOrganization.ID(SellerTradeParty: BT-31; SellerTradeParty: BT-32; SellerTaxRepresentativeTradeParty: BT-63)TaxRegistration.SchemeID(For Seller VAT identifier: BT-31; For Seller tax registration identifier: BT-32)FacturXInvoice.AddSellerTaxRegistration(no, schemeID)(BT-31)FacturXInvoice.GetSellerTaxRegistration()(BT-31)FacturXInvoice.GetSellerTaxRepresentativeTaxRegistration()(BT-63)
Technical details
The test accepts a seller ID with schemeID VA or FC, or an ID with schemeID VA under SellerTaxRepresentativeTradeParty.
The rule applies to a document level allowance under SpecifiedTradeAllowanceCharge with CategoryCode L. It checks the seller’s tax registrations or the tax representative’s VAT identifier.
rule/@context)assert/@test)