= 2; $client_head_billing = lookupUserPermission("module_financial") >= 1 && $config_module_enable_accounting == 1; $client_head_support = lookupUserPermission("module_support") >= 1 && $config_module_enable_ticketing == 1; $client_head_invoices = lookupUserPermission("module_sales") >= 1 && $config_module_enable_accounting == 1; $client_head_glance_tickets = $client_head_support && $num_active_tickets > 0; $client_head_glance_due = $client_head_billing && $balance > 0; $client_head_money = function ($amount) use ($currency_format, $client_currency_code, $session_company_currency) { return numfmt_format_currency($currency_format, floatval($amount), $client_currency_code ?: $session_company_currency); }; ?>