Cleanup: removed _GET/_POST references from business logic model.
[fa-stable.git] / manufacturing / search_work_orders.php
index 7610a1cb9f867edf565748d17e4271cea9dd02b3..e276261f1362eae55a2ef66fcb5bac6f565155d0 100644 (file)
@@ -153,7 +153,8 @@ function dec_amount($row, $amount)
        return number_format2($amount, $row['decimals']);
 }
 
-$sql = get_sql_for_work_orders($outstanding_only, $all_items);
+$sql = get_sql_for_work_orders($outstanding_only, $_POST['SelectedStockItem'], $_POST['StockLocation'],
+       $_POST['OrderNumber'], check_value('OverdueOnly'));
 
 $cols = array(
        _("#") => array('fun'=>'view_link', 'ord'=>''),