From: <te...@us...> - 2014-06-13 01:09:25
|
Revision: 6751 http://sourceforge.net/p/web-erp/reponame/6751 Author: tehonu Date: 2014-06-13 01:09:20 +0000 (Fri, 13 Jun 2014) Log Message: ----------- use of rounding when not showing accounts with zero balances (to avoid -0, and 0 values due to multicurrency exchanges long decimal numbers) Modified Paths: -------------- trunk/GLBalanceSheet.php Modified: trunk/GLBalanceSheet.php =================================================================== --- trunk/GLBalanceSheet.php 2014-06-12 18:46:41 UTC (rev 6750) +++ trunk/GLBalanceSheet.php 2014-06-13 01:09:20 UTC (rev 6751) @@ -569,7 +569,7 @@ if ($_POST['Detail']=='Detailed'){ - if (isset($_POST['ShowZeroBalances']) OR (!isset($_POST['ShowZeroBalances']) AND ($AccountBalance <> 0 OR $LYAccountBalance <> 0))){ + if (isset($_POST['ShowZeroBalances']) OR (!isset($_POST['ShowZeroBalances']) AND (round($AccountBalance,$_SESSION['CompanyRecord']['decimalplaces']) <> 0 OR round($LYAccountBalance,$_SESSION['CompanyRecord']['decimalplaces']) <> 0))){ if ($k==1){ echo '<tr class="OddTableRows">'; $k=0; |