From: <ex...@us...> - 2016-03-18 08:09:24
|
Revision: 7477 http://sourceforge.net/p/web-erp/reponame/7477 Author: exsonqu Date: 2016-03-18 08:09:22 +0000 (Fri, 18 Mar 2016) Log Message: ----------- 18/03/2016 Exson: Correct the currency code for transaction between bank account in GLAccountInquiry.php. Modified Paths: -------------- trunk/GLAccountInquiry.php Modified: trunk/GLAccountInquiry.php =================================================================== --- trunk/GLAccountInquiry.php 2016-03-18 07:54:29 UTC (rev 7476) +++ trunk/GLAccountInquiry.php 2016-03-18 08:09:22 UTC (rev 7477) @@ -62,7 +62,6 @@ if($myrow['accountcode'] == $SelectedAccount){ if (!is_null($myrow['bankact'])) { $BankAccount = true; - $BankCurrency = $myrow['currcode']; } echo '<option selected="selected" value="' . $myrow['accountcode'] . '">' . $myrow['accountcode'] . ' ' . htmlspecialchars($myrow['accountname'], ENT_QUOTES, 'UTF-8', false) . '</option>'; } else { @@ -297,10 +296,10 @@ $BankRef = $bankrow['ref']; $OrgAmt = $bankrow['amount']; $Currency = $bankrow['currcode']; - } elseif(isset($BankCurrency)){ + } elseif(isset($BankAccount)){ $BankRef = ''; $OrgAmt = $myrow['amount']; - $Currency = $BankCurrency; + $Currency = $_SESSION['CompanyRecord']['currencydefault']; } } |