From: <tu...@us...> - 2015-02-26 01:44:21
|
Revision: 7179 http://sourceforge.net/p/web-erp/reponame/7179 Author: turbopt Date: 2015-02-26 01:44:19 +0000 (Thu, 26 Feb 2015) Log Message: ----------- Fix Z_ImportSupplier bug reported in forum by: Bill Schlaerth. Modified Paths: -------------- trunk/Z_ImportSuppliers.php trunk/doc/Change.log Modified: trunk/Z_ImportSuppliers.php =================================================================== --- trunk/Z_ImportSuppliers.php 2015-02-25 00:44:12 UTC (rev 7178) +++ trunk/Z_ImportSuppliers.php 2015-02-26 01:44:19 UTC (rev 7179) @@ -199,7 +199,9 @@ $sql="SELECT COUNT(supplierid) FROM suppliers WHERE supplierid='".$SupplierID."'"; $result=DB_query($sql); $myrow=DB_fetch_row($result); - $SuppExists=(DB_num_rows($result)>0); + + $SuppExists = ($myrow[0]>0); + if ($SuppExists AND $_POST['UpdateIfExists']!=1) { $UpdatedNum++; }elseif($SuppExists){ Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2015-02-25 00:44:12 UTC (rev 7178) +++ trunk/doc/Change.log 2015-02-26 01:44:19 UTC (rev 7179) @@ -1,5 +1,6 @@ webERP Change Log +25/2/15 TurboPT: Fix Z_ImportSupplier bug reported in forum by: Bill Schlaerth. 22/2/15 TurboPT: Fix supplier delivery address bug reported in form by: Giusba 22/2/15 RChacon: Adjust page_title and add "Print This" and "Return" buttons with icon to Statement of Comprehensive Income and Trial Balance scripts. Add code documentation and removes redundant $ViewTopic and $BookMark in GLTrialBalance.php. 22/2/15 RChacon: Add missing preview.png and new previous.png icons. Add "Print This" and "Return" buttons with icon in GLBalanceSheet.php. |