mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 20:04:31 -04:00
Fix for formatMoney
This commit is contained in:
parent
d61475eb43
commit
f53fc5d479
@ -369,9 +369,7 @@ class Utils
|
|||||||
|
|
||||||
public static function formatMoney($value, $currencyId = false, $countryId = false, $showCode = false)
|
public static function formatMoney($value, $currencyId = false, $countryId = false, $showCode = false)
|
||||||
{
|
{
|
||||||
if (!$value) {
|
$value = floatval($value);
|
||||||
$value = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$currencyId) {
|
if (!$currencyId) {
|
||||||
$currencyId = Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY);
|
$currencyId = Session::get(SESSION_CURRENCY, DEFAULT_CURRENCY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user