mirror of
https://github.com/itflow-org/itflow
synced 2026-11-25 05:47:26 +00:00
Format money through billingMoney in the 51 places that called numfmt_format_currency directly, on client and vendor pages, payment and credit messages, the portal home, the guest card page and the report, dashboard and search helpers
This commit is contained in:
@@ -46,7 +46,7 @@ if ($access['financial']) {
|
||||
$priority_colors = ['Urgent' => 'dark', 'High' => 'danger', 'Medium' => 'warning', 'Low' => 'info'];
|
||||
$tone_text = ['danger' => 'text-danger-emphasis', 'warning' => 'text-warning-emphasis', 'info' => 'text-info-emphasis', 'secondary' => 'text-body'];
|
||||
$money_format = 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);
|
||||
return billingMoney(floatval($amount), $client_currency_code ?: $session_company_currency);
|
||||
};
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user