[Vtigercrm-developers] Fwd: Re: UItype 71 truncating trailing zeros [SOLVED]
Vic Cekvenich
vic.cvc at gmx.com
Sun Aug 17 22:02:57 GMT 2014
-------- Original Message --------
Subject: Re: [Vtigercrm-developers] UItype 71 truncating trailing zeros [SOLVED]
Date: Thu, 24 Jul 2014 12:38:26 +0100
From: Alan Lord <alanslists at gmail.com>
Reply-To: vtigercrm-developers at lists.vtigercrm.com
To: vtigercrm-developers at lists.vtigercrm.com
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