diff --git a/post/user/client_model.php b/post/user/client_model.php index 00255d86..c08352ff 100644 --- a/post/user/client_model.php +++ b/post/user/client_model.php @@ -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);