forked from Wavyzz/dolibarr
fix rounding for price and display currency
This commit is contained in:
@@ -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] : '');
|
||||
|
||||
Reference in New Issue
Block a user