Merged changes form stabel branch up to the current state (2.3.22+).
[fa-stable.git] / purchasing / inquiry / po_search_completed.php
index 986a706f3c60d0fe09d5e87820b053f0e8bac00a..196de84e295c1424630927ddd1c61fe0c3adb079 100644 (file)
@@ -71,6 +71,9 @@ start_row();
 
 stock_items_list_cells(_("for item:"), 'SelectStockFromList', null, true);
 
+if (!@$_GET['popup'])
+       supplier_list_cells(_("Select a supplier: "), 'supplier_id', null, true, true);
+
 submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
 end_row();
 end_table(1);
@@ -114,7 +117,7 @@ function prt_link($row)
 
 //---------------------------------------------------------------------------------------------
 
-$sql = get_sql_for_po_search_completed();
+$sql = get_sql_for_po_search_completed(!@$_GET['popup'] ? $_POST['supplier_id'] : ALL_TEXT);
 
 $cols = array(
                _("#") => array('fun'=>'trans_view', 'ord'=>''),