Override precisiong for jpy currency

This commit is contained in:
David Bomba 2023-04-04 21:15:02 +10:00
parent 047fb30a78
commit 20dcfffb34

View File

@ -244,6 +244,11 @@ class Number
$precision = 2;
}
//04-04-2023 if currency = JPY override precision to 0
if($currency->code == 'JPY') {
$precision = 0;
}
$value = number_format($v, $precision, $decimal, $thousand);
$symbol = $currency->symbol;