}
return number_format2($number, $dec);
}
-// function money_format doesn't exist in OS Win. It is also deprecated above php 7.4.
-if (!function_exists('money_format'))
-{
- function money_format($format, $number)
- {
- return price_format($number);
- }
-}
// 2008-06-15. Added extra parameter $stock_id and reference for $dec
//--------------------------------------------------------------------
setlocale(LC_MONETARY, $amount_locale);
if ($color_red && $txt < 0)
$this->SetTextColor(255, 0, 0);
- $ret = $this->TextCol($c, $n, money_format($amount_format, $txt), $corr, $r, $border, $fill, $link, $stretch);
+ $ret = $this->TextCol($c, $n, price_format($txt), $corr, $r, $border, $fill, $link, $stretch);
if ($color_red && $txt < 0)
$this->SetTextColor(0, 0, 0);
return $ret;