From: <ex...@us...> - 2016-01-13 02:38:20
|
Revision: 7441 http://sourceforge.net/p/web-erp/reponame/7441 Author: exsonqu Date: 2016-01-13 02:38:17 +0000 (Wed, 13 Jan 2016) Log Message: ----------- 13/01/16 Exson: Fixed the variables non-refresh bugs in GLAccountInquiry.php. Reported by Richard. Modified Paths: -------------- trunk/GLAccountInquiry.php Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2016-01-11 10:36:19 UTC (rev 7440) +++ trunk/GLAccountInquiry.php 2016-01-13 02:38:17 UTC (rev 7441) @@ -282,6 +282,9 @@ echo '<tr class="OddTableRows">'; $k++; } + $BankRef = ''; + $OrgAmt = ''; + $Currency = ''; if ($myrow['type'] == 12 OR $myrow['type'] == 22 OR $myrow['type'] == 2 OR $myrow['type'] == 1) { $banksql = "SELECT ref,currcode,amount FROM banktrans WHERE type='" .$myrow['type']."' AND transno='" . $myrow['typeno'] . "' AND bankact='" . $SelectedAccount . "'"; @@ -293,11 +296,7 @@ $OrgAmt = $bankrow['amount']; $Currency = $bankrow['currcode']; } - } else { - $BankRef = ''; - $OrgAmt = ''; - $Currency = ''; - } + } $RunningTotal += $myrow['amount']; $PeriodTotal += $myrow['amount']; |