Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Incorrect verification of the VAT number for a customer who does not have an EU VAT number #20

@m4dh

Description

@m4dh

Describe the bug

After installing the European VAT number add-on, and enabling the automatic checking of registration in the VIES database, the module works correctly only for taxpayers registered in this database - i.e. deducts the tax due in the country of purchase from the total of purchases.
If you enter a VAT number that is not registered in the EU VIES VAT database - the system displays the error "VAT number not found".
This is a correct message only if we assume that the field in the form is used to enter the VAT number of registered taxpayers in the VIES database.
If the taxpayer has the correct number but is not registered in the VIES database, the module prevents him from processing the order.
The data form cannot contain two different fields for entering the VAT number (in a given country) and EU VAT - and this is the only solution at the moment (wrong in assumption).

Expected behavior

Enabling the module should for registered VAT VIES taxpayers for tax deduction upon purchase, for taxpayers not registered in the VIES database, the system should validate the EU VAT field in terms of entering the VAT number, and prevent the deduction of due tax, informing that the taxpayer is not entitled to a tax deduction.

Steps to Reproduce

Steps to reproduce the behavior:

Module version 2.1.0
configure the module like this:

Customers' country: eg. Poland
Enable checking of the VAT number with the web service: Enable

Go through the purchase process in the store
register customer (company) data
enter EU VAT eg. PL5862283151
Saving the form causes the error "VAT number not found"

Screenshots

If applicable, add screenshots or screen recordings to help explain your problem.

Additional information

  • PrestaShop version: 1.7.6.8
  • PHP version: 7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions