Merge pull request #20111 from atm-greg/Fix_14.0_price_extrafields_rounding_and_currency

fix rounding for price and display currency
This commit is contained in:
Laurent Destailleur 2022-02-18 20:19:02 +01:00 committed by GitHub
commit 19f51347ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1679,7 +1679,7 @@ 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] : '');