New : label cannot be empty

This commit is contained in:
sparkyx 2024-12-09 14:30:07 +01:00
parent 7d15bc9d6a
commit fa86e4d86b

View file

@ -396,7 +396,10 @@ class Tva_Rate_MTable extends Manage_Table_SQL
$this->set_error("tva_reverse_account", _("Poste comptable inexistant"));
}
}
// label cannot be empty
if ( trim($this->table->tva_label??"")=="") {
$this->set_error("tva_label", _('Le label ne peut être vide'));
}
if ($this->count_error()!=0)
return false;
return true;