$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(900, 600);
-if ($use_date_picker)
+if (user_use_date_picker())
$js .= get_js_date_picker();
if (isset($_GET['OutstandingOnly']) && ($_GET['OutstandingOnly'] == true))
stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true);
+customer_list_cells(_("Select a customer: "), 'customer_id', null, true, true);
+
submit_cells('SearchOrders', _("Search"),'',_('Select documents'), 'default');
hidden('OutstandingOnly', $_POST['OutstandingOnly']);
$row["Outstanding"]!=0;
}
//------------------------------------------------------------------------------------------------
-$sql = get_sql_for_sales_deliveries_view($selected_customer, $selected_stock_item);
+$sql = get_sql_for_sales_deliveries_view($selected_customer, $selected_stock_item, $_POST['customer_id']);
$cols = array(
_("Delivery #") => array('fun'=>'trans_view'),