function displayListPlain($layout_def)
 {
     //Bug40995
     if ($layout_def['precision'] != '') {
         return format_number(parent::displayListPlain($layout_def), $layout_def['precision'], $layout_def['precision']);
     } else {
         return format_number(parent::displayListPlain($layout_def), 2, 2);
     }
 }
 function displayList($layout_def)
 {
     $vardef = $this->getVardef($layout_def);
     if (isset($vardef['precision'])) {
         $precision = $vardef['precision'];
     } else {
         $precision = null;
     }
     return format_number(parent::displayListPlain($layout_def), $precision, $precision);
 }
 public function displayListPlain($layout_def)
 {
     $value = parent::displayListPlain($layout_def);
     $row_currency = $this->getCurrency($layout_def);
     $format_id = $row_currency['currency_id'];
     global $current_user;
     // when the group by function is empty, and we should show the user prefered currency, it should convert it
     if (empty($layout_def['group_function']) && $current_user->getPreference('currency_show_preferred')) {
         $user_currency = SugarCurrency::getUserLocaleCurrency();
         if ($user_currency->id != $row_currency['currency_id']) {
             $value = SugarCurrency::convertAmount($value, $row_currency['currency_id'], $user_currency->id);
             $format_id = $user_currency->id;
         }
     }
     return SugarCurrency::formatAmountUserLocale($value, $format_id);
 }
 function displayListPlain($layout_def)
 {
     //        $value = $this->_get_list_value($layout_def);
     $value = format_number(parent::displayListPlain($layout_def), 2, 2, array('convert' => false, 'currency_symbol' => false));
     return $value;
 }
 function SugarWidgetFieldDouble(&$layout_manager)
 {
     parent::SugarWidgetFieldInt($layout_manager);
 }
 function displayListPlain($layout_def)
 {
     $value = currency_format_number(parent::displayListPlain($layout_def), array_merge(array('convert' => false), $this->getCurrency($layout_def)));
     return $value;
 }
 function displayListPlain($layout_def)
 {
     return format_number(parent::displayListPlain($layout_def), 2, 2);
 }
 function __construct(&$layout_manager)
 {
     parent::__construct($layout_manager);
 }