- 🇧🇪Belgium dieterholvoet Brussels
Drupal 7 has been officially EOL since 5 January 2025.
It would be great to have such option, because most of my customers enter VAT number in local manner (without country code). So i have made this modification in vat_number_field_widget_element_validate:
//at first check the format of VAT, if its ok ...
$vat_format_check = _vat_number_check_vat_format($value);
if(isset($vat_format_check['message'])) {
$value = 'PL'.$value; // default country code here : added
$vat_format_check = _vat_number_check_vat_format($value); // added
if(isset($vat_format_check['message'])) { // added
$message = $vat_format_check['message'];
} // added
}
The better solution is special setting on settings form.
Closed: won't fix
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Drupal 7 has been officially EOL since 5 January 2025.