mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-17 03:51:06 +01:00
Fix validazione P.IVA
This commit is contained in:
parent
75506424c5
commit
2d11001af8
@ -66,7 +66,7 @@ switch ($name) {
|
||||
$errors[] = tr('La partita iva inserita non possiede un formato valido');
|
||||
}
|
||||
|
||||
if (empty($check['valid'])) {
|
||||
if (isset($check['valid']) && empty($check['valid'])) {
|
||||
$result = false;
|
||||
$errors[] = tr("Impossibile verificare l'origine della partita iva");
|
||||
}
|
||||
|
@ -54,8 +54,10 @@ class Validate
|
||||
*/
|
||||
public static function isValidVatNumber($vat_number)
|
||||
{
|
||||
if (empty($vat_number)) {
|
||||
$result['valid-format'] = true;
|
||||
|
||||
if (empty($vat_number)) {
|
||||
return $result;
|
||||
}
|
||||
|
||||
// Controllo sulla sintassi
|
||||
|
Loading…
x
Reference in New Issue
Block a user