[Vtigercrm-commits] [vtiger development] #5391: Invalid display of amount value

vtiger development vtiger-tickets at trac.vtiger.com
Thu Oct 30 18:17:08 EDT 2008


#5391: Invalid display of amount value
-----------------------+----------------------------------------------------
 Reporter:  elmue.gmx  |       Owner:  developer
     Type:  defect     |      Status:  new      
 Priority:  minor      |   Milestone:  5.1.0    
Component:  vtigercrm  |     Version:  5.0.4    
 Keywords:             |  
-----------------------+----------------------------------------------------
 Hello

 In the Potential module the user can enter an amount.
 If this exceeds a value of a million it is displayed as 1.2E+6.

 When you try to save any change in the Potentials view like SalesStage,
 NextStep or any other field, vtiger complains about an invalid value in
 the amount field.

 This is an annoying error!

 I entered
 Amount = 1200000
 and the next time I open the Potential vtiger displays:
 Amount = 1.2E+6
 and complains about the value which I have never entered!

 Bugfix:
 File: include\utils\CommonUtils.php
 Function: convertFromDollar()

 Modify the last line from

 return $amount * $crate;
 into
 return number_format($amount * $crate, 0, ",", "");

 {{{
 function convertFromDollar($amount,$crate)
 {
         global $log;
         $log->debug("Entering convertFromDollar(".$amount.",".$crate.")
 method ...");
         $log->debug("Exiting convertFromDollar method ...");
         return number_format($amount * $crate, 0, ",", "");
 }
 }}}

 and it works as it should!

 Elmü

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/5391>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list