Skip to content

Commit

Permalink
Merge pull request #85 from webERP-team/master
Browse files Browse the repository at this point in the history
fix sql search by supplier id condition (#163)
  • Loading branch information
timschofield authored Mar 27, 2019
2 parents bcadc25 + 1074421 commit c06426e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SupplierTransInquiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@
if ($_POST['TransType']!='All') {
$sql .= " AND type = " . $_POST['TransType'];
}
if($_POST['SupplierNo'] != "")
{
$sql .= " AND supptrans.supplierno LIKE '%".$_POST['SupplierNo']."%'";
}
$sql .= " ORDER BY id";

$TransResult = DB_query($sql);
Expand Down

0 comments on commit c06426e

Please sign in to comment.