2
0
forked from Wavyzz/dolibarr

fix rounding for price and display currency

This commit is contained in:
atm-greg
2022-02-18 10:50:00 +01:00
parent 28e6acdae3
commit 12c825ba84

View File

@@ -1679,7 +1679,8 @@ class ExtraFields
} elseif ($type == 'price') {
//$value = price($value, 0, $langs, 0, 0, -1, $conf->currency);
if ($value || $value == '0') {
$value = price($value, 0, $langs, 0, 0, -1);
$value = price($value, 0, $langs, 0, $conf->global->MAIN_MAX_DECIMALS_TOT, -1).' '.$langs->getCurrencySymbol($conf->currency);
}
} elseif ($type == 'select') {
$valstr = (!empty($param['options'][$value]) ? $param['options'][$value] : '');