An Invoice that contains an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is "IPSI" 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).
If the invoice contains an invoice line with category M (IPSI), the test’s required tax identification is missing: either a seller identifier with schemeID VA or FC, or a tax representative VAT identifier with schemeID VA.
An invoice containing the IPSI category must include at least one of the seller or tax representative identifiers specified by the test.
The invoice contains an invoice line in the IPSI category M, but none of the tax identifiers checked for this case is present. Any one of the accepted identifiers is sufficient.
- Add a seller identifier with
schemeIDVAorFCusingFacturXInvoice.AddSellerTaxRegistration(no, schemeID). - Alternatively, add the tax representative’s VAT identifier with
schemeIDVA. - Check the seller or tax representative details in
LegalOrganization.IDand the identifier type inTaxRegistration.SchemeID. - Generate the invoice again and validate it again.
<ram:ApplicableTradeTax> <ram:CategoryCode>M</ram:CategoryCode> </ram:ApplicableTradeTax> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="XX">123</ram:ID> </ram:SpecifiedTaxRegistration> </ram:SellerTradeParty>
<ram:ApplicableTradeTax> <ram:CategoryCode>M</ram:CategoryCode> </ram:ApplicableTradeTax> <ram:SellerTradeParty> <ram:SpecifiedTaxRegistration> <ram:ID schemeID="VA">123</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 XPath test accepts either a seller identifier with schemeID VA or FC, or a tax representative identifier with schemeID VA.
The rule applies to invoices with at least one invoice line whose VAT category is M for IPSI. It checks the seller’s and the seller’s tax representative’s tax registrations.
rule/@context)assert/@test)