Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When the provided VAT ID number is invalid according to the validation by the European Union's VAT Information Exchange System (VIES) through the SOAP service, we currently receive the following error message:
The VAT number could not be validated by the European VAT Database. Please go back and input a correct VAT.
This message could be improved:
- "the European VAT Database" is correctly called "the European Union's VAT Information Exchange System".
- "Please go back" should be removed since the user actually can't go back, but instead has to correct the VAT ID number on the current page.
- "input a correct VAT" means the amount of tax, but not the VAT ID number.
Comment | File | Size | Author |
---|---|---|---|
#1 | vat_number-2078275.patch | 1.47 KB | roball |
#1 | 1.Invalid VAT number error - before.png | 19.06 KB | roball |
#1 | 2.Invalid VAT number error - after.png | 22.53 KB | roball |
Comments
Comment #1
roball CreditAttribution: roball commentedThe attached patch implements this improved error message, as shown in the attached before and after screenshots.
This is my last patch for this module for now...
Comment #2
dwkitchen CreditAttribution: dwkitchen commentedThanks for the better error message, didn't apply cleanly but committed the changes.
Comment #3
roball CreditAttribution: roball commentedThank you very much dwkitchen for committing.