Added supplier search in Outstanding Purchase Orders and Purchase Orders Inquiry.
[fa-stable.git] / purchasing / inquiry / po_search.php
index 220b1e1a325d62e2c36d2452ee939ca1dd268f34..3cf0b6cd4f21d78fbd5196a415d39a058d1cdc96 100644 (file)
@@ -73,6 +73,8 @@ start_row();
 
 stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true);
 
+supplier_list_cells(_("Select a supplier: "), 'supplier_id', null, true, true);
+
 submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
 end_row();
 end_table(1);
@@ -121,7 +123,7 @@ else
 }
 
 //figure out the sql required from the inputs available
-$sql = get_sql_for_po_search();
+$sql = get_sql_for_po_search($_POST['supplier_id']);
 
 //$result = db_query($sql,"No orders were returned");