[Vtigercrm-developers] UItype 71 truncating trailing zeros [SOLVED]

Biswabhusan Das biswabhusan.das at progressive.in
Thu Jul 24 11:47:30 GMT 2014


Great its working..

thanks a lot..
________________________________________
From: vtigercrm-developers-bounces at lists.vtigercrm.com <vtigercrm-developers-bounces at lists.vtigercrm.com> on behalf of Alan Lord <alanslists at gmail.com>
Sent: 24 July 2014 17:08
To: vtigercrm-developers at lists.vtigercrm.com
Subject: Re: [Vtigercrm-developers] UItype 71 truncating trailing zeros [SOLVED]

After following the thread of spaghetti to a function convertFromDollar
in CommonUtils the function should use

  > return number_format($amount * $crate, 2);

but it had

> return round($amount * $crate, 2);

which doesn't do the same thing. (Please note that number_format can
take other parameters if you do not use "," for thousands and "." for
the decimal point.

HTH

Al


_______________________________________________
http://www.vtiger.com/



More information about the vtigercrm-developers mailing list