From: <tim...@us...> - 2010-11-02 12:54:25
|
Revision: 4136 http://web-erp.svn.sourceforge.net/web-erp/?rev=4136&view=rev Author: tim_schofield Date: 2010-11-02 12:54:19 +0000 (Tue, 02 Nov 2010) Log Message: ----------- Correction to work with debtors that have a - in the code Modified Paths: -------------- trunk/SelectCustomer.php trunk/doc/Change.log.html Modified: trunk/SelectCustomer.php =================================================================== --- trunk/SelectCustomer.php 2010-11-02 02:59:35 UTC (rev 4135) +++ trunk/SelectCustomer.php 2010-11-02 12:54:19 UTC (rev 4136) @@ -253,7 +253,7 @@ if (!isset($_POST['Select'])) { $_POST['Select'] = ""; } -$Debtor=explode('-', $_POST['Select']); +$Debtor=explode(' ', $_POST['Select']); if ($_POST['Select'] != "" or ($_SESSION['CustomerID'] != "" and !isset($_POST['Keywords']) and !isset($_POST['CustCode']) and !isset($_POST['CustType']) and !isset($_POST['CustPhone']))) { if ($_POST['Select'] != "") { $SQL = "SELECT brname, phoneno FROM custbranch WHERE debtorno='" . $Debtor[0] . "'"; @@ -487,7 +487,7 @@ echo '<tr class="OddTableRows">'; $k = 1; } - echo "<td><font size=1><input type=submit name='Select' value='" . $myrow['debtorno'].'-'.$myrow['branchcode'] . "'></font></td> + echo "<td><font size=1><input type=submit name='Select' value='" . $myrow['debtorno'].' '.$myrow['branchcode'] . "'></font></td> <td><font size=1>" . $myrow['name'] . "</font></td> <td><font size=1>" . $myrow['brname'] . "</font></td> <td><font size=1>" . $myrow['contactname'] . "</font></td> Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2010-11-02 02:59:35 UTC (rev 4135) +++ trunk/doc/Change.log.html 2010-11-02 12:54:19 UTC (rev 4136) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p></p> +<p>02/11/10 Tim: SelectCustomer.php. Correction to work with debtors that have a - in the code</p> <p>31/10/10 Tim: SuppTransGLAnalysis.php. Minor bug fixes</p> <p>31/10/10 Tim: SuppTransGLAnalysis.php. Force the user to select a GL account code instaed of defaulting to first on the list</p> <p>31/10/10 Tim: CustomerReceipt.php. Force the user to select a GL account code and a Bank Account instaed of defaulting to first on the list</p> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |