Skip to content
Snippets Groups Projects
Commit f902c8a2 authored by Prasad's avatar Prasad
Browse files

Merge branch '158980882' into 'master'

Fixes: The decimal field values are formatted according to user's preffered format

See merge request vtiger/vtigercrm!1185
parents 070b25a3 e58217b0
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,11 @@ class Vtiger_Double_UIType extends Vtiger_Base_UIType {
* @return <Object>
*/
public function getDisplayValue($value, $record=false, $recordInstance=false) {
return decimalFormat($value);
//The value is formatting to the user preffered format
//The third parameter for the converTouserFormat() function is skipConversion.
//We set skipConversion to true because there's no need to convert the values for different currency formats.
$value = CurrencyField::convertToUserFormat(decimalFormat($value), null, true);
return $value;
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment