From: <aga...@us...> - 2015-04-21 14:27:00
|
Revision: 7270 http://sourceforge.net/p/web-erp/reponame/7270 Author: agaluski Date: 2015-04-21 14:26:58 +0000 (Tue, 21 Apr 2015) Log Message: ----------- Moved total initialization so that Grand Total is not total for last supplier Modified Paths: -------------- trunk/Dashboard.php Modified: trunk/Dashboard.php =================================================================== --- trunk/Dashboard.php 2015-04-20 12:44:02 UTC (rev 7269) +++ trunk/Dashboard.php 2015-04-21 14:26:58 UTC (rev 7270) @@ -398,7 +398,8 @@ $SupplierID =''; $TotalPayments = 0; $TotalAccumDiffOnExch = 0; - + $AccumBalance =0; + while ($SuppliersToPay = DB_fetch_array($SuppliersResult)){ $CurrDecimalPlaces = $SuppliersToPay['currdecimalplaces']; @@ -445,7 +446,6 @@ unset($Allocs); $Allocs = array(); $AllocCounter =0; - $AccumBalance =0; $k=0; //row colour counter while ($DetailTrans = DB_fetch_array($TransResult)){ |