mirror of https://github.com/itflow-org/itflow
Auto set client abbreviation if not set in add or edit client
This commit is contained in:
parent
2d39f21b51
commit
8d05633d7d
|
|
@ -10,5 +10,8 @@ $currency_code = sanitizeInput($_POST['currency_code'] ?? $session_company_curre
|
|||
$net_terms = intval($_POST['net_terms'] ?? $config_default_net_terms);
|
||||
$tax_id_number = sanitizeInput($_POST['tax_id_number'] ?? '');
|
||||
$abbreviation = sanitizeInput($_POST['abbreviation']);
|
||||
if (empty($abbreviation)) {
|
||||
$abbreviation = shortenClient($name);
|
||||
}
|
||||
$notes = sanitizeInput($_POST['notes']);
|
||||
$lead = intval($_POST['lead'] ?? 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue