X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Finquiry%2Fpo_search.php;h=f3203f6361126a16d0d5c1da5f87ddb17a42d99f;hb=ae115f787d84c11c6140137b054261a398b2f077;hp=cf9a80b6dac6ebe1230ba1c9ae345fbe9442f67f;hpb=1b9351ae81a67726e757eba55895a4f059c7f128;p=fa-stable.git diff --git a/purchasing/inquiry/po_search.php b/purchasing/inquiry/po_search.php index cf9a80b6..f3203f63 100644 --- a/purchasing/inquiry/po_search.php +++ b/purchasing/inquiry/po_search.php @@ -107,14 +107,9 @@ function check_overdue($row) } //--------------------------------------------------------------------------------------------- -if (isset($_POST['order_number']) && ($_POST['order_number'] != "")) -{ - $order_number = $_POST['order_number']; -} - //figure out the sql required from the inputs available -$sql = get_sql_for_po_search($_POST['OrdersAfterDate'], $_POST['OrdersToDate'], $_POST['supplier_id'], - $_POST['StockLocation']); +$sql = get_sql_for_po_search(get_post('OrdersAfterDate'), get_post('OrdersToDate'), get_post('supplier_id'), get_post('StockLocation'), + $_POST['order_number'], get_post('SelectStockFromList')); //$result = db_query($sql,"No orders were returned"); @@ -146,4 +141,3 @@ display_db_pager($table); end_form(); end_page(); -?>