Auto set client abbreviation if not set in add or edit client

This commit is contained in:
johnnyq 2025-02-22 14:02:31 -05:00
parent 2d39f21b51
commit 8d05633d7d
1 changed files with 3 additions and 0 deletions

View File

@ -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);