|
From: <ex...@us...> - 2016-08-02 06:29:21
|
Revision: 7577
http://sourceforge.net/p/web-erp/reponame/7577
Author: exsonqu
Date: 2016-08-02 06:29:19 +0000 (Tue, 02 Aug 2016)
Log Message:
-----------
02/08/16 Exson: Make account inquiry shown directly when GL Code selected or inquiry result is 1 in SelectGLAccount.php.
Modified Paths:
--------------
trunk/SelectGLAccount.php
trunk/doc/Change.log
Modified: trunk/SelectGLAccount.php
===================================================================
--- trunk/SelectGLAccount.php 2016-07-27 10:10:03 UTC (rev 7576)
+++ trunk/SelectGLAccount.php 2016-08-02 06:29:19 UTC (rev 7577)
@@ -52,6 +52,10 @@
chartmaster.accountcode";
} elseif (mb_strlen($_POST['GLCode'])>0){
+ if (!empty($_POST['GLCode'])) {
+ header('location:' . $RootPath . '/GLAccountInquiry.php?Account=' . $_POST['GLCode'] . '&Show=Yes');
+ exit;
+ }
$SQL = "SELECT chartmaster.accountcode,
chartmaster.accountname,
@@ -69,6 +73,11 @@
}
if (isset($SQL) and $SQL!=''){
$result = DB_query($SQL);
+ if (DB_num_rows($result) == 1) {
+ $AccountRow = DB_fetch_row($result);
+ header('location:' . $RootPath . '/GLAccountInquiry.php?Account=' . $AccountRow[0] . '&Show=Yes');
+ exit;
+ }
}
} //end of if search
@@ -178,4 +187,4 @@
} //end AccountID already selected
include('includes/footer.inc');
-?>
\ No newline at end of file
+?>
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2016-07-27 10:10:03 UTC (rev 7576)
+++ trunk/doc/Change.log 2016-08-02 06:29:19 UTC (rev 7577)
@@ -1,5 +1,5 @@
webERP Change Log
-
+02/08/16 Exson: Make account inquiry shown directly when GL Code selected or inquiry result is 1 in SelectGLAccount.php.
27/07/16 Exson: Add cost update date for material cost in WorkOrderCosting.php and WorkOrderIssue.php.
27/07/16 Exson: Fixed the typo in Credit_Invoice.php introduced in previous update.
27/07/16 Exson: Fixed the divided by zero error when discount is 100% in SelectOrderItems.php.
|