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:
johnnyq
2026-11-20 23:58:05 -05:00
parent 31c34fd92a
commit d0caeee324
23 changed files with 52 additions and 51 deletions

View File

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