From: <rc...@us...> - 2015-03-03 14:38:44
|
Revision: 7182 http://sourceforge.net/p/web-erp/reponame/7182 Author: rchacon Date: 2015-03-03 14:38:37 +0000 (Tue, 03 Mar 2015) Log Message: ----------- Reverse change: Use "1" instead of "$_SESSION['CompanyRecord']['decimalplaces']" for decimal places of gross profit (as previous version). Modified Paths: -------------- trunk/SelectProduct.php Modified: trunk/SelectProduct.php =================================================================== --- trunk/SelectProduct.php 2015-03-02 17:26:32 UTC (rev 7181) +++ trunk/SelectProduct.php 2015-03-03 14:38:37 UTC (rev 7182) @@ -1,5 +1,6 @@ <?php /* $Id$*/ +/* Selection of items. All item maintenance, transactions and inquiries start with this script. */ $PricesSecurity = 12;//don't show pricing info unless security token 12 available to user $SuppliersSecurity = 9; //don't show supplier purchasing info unless security token 9 available to user @@ -174,7 +175,7 @@ <th class="number">' . _('Gross Profit') . ':</th> <td class="select">'; if ($Price > 0) { - echo locale_number_format(($Price - $Cost) * 100 / $Price, $_SESSION['CompanyRecord']['decimalplaces']) . '%'; + echo locale_number_format(($Price - $Cost) * 100 / $Price, 1) . '%'; } else { echo _('N/A'); } |