start_row();
}
stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true);
-
+customer_list_cells(_("Select a customer: "), 'customer_id', null, true);\r
if ($trans_type == ST_SALESQUOTE)
check_cells(_("Show All:"), 'show_all');
// Orders inquiry table
//
$sql = get_sql_for_sales_orders_view($selected_customer, $trans_type, $_POST['OrderNumber'], $_POST['order_view_mode'],
- @$selected_stock_item, @$_POST['OrdersAfterDate'], @$_POST['OrdersToDate'], @$_POST['OrderReference'], $_POST['StockLocation']);
+ @$selected_stock_item, @$_POST['OrdersAfterDate'], @$_POST['OrdersToDate'], @$_POST['OrderReference'], $_POST['StockLocation'], $_POST['customer_id']);\r
if ($trans_type == ST_SALESORDER)
$cols = array(
'Type' => 'skip',
_("Currency") => array('align'=>'center')
);
-if ($_POST['order_view_mode'] == 'OutstandingOnly') {
- //array_substitute($cols, 3, 1, _("Cust Order Ref"));
- array_append($cols, array(array('insert'=>true, 'fun'=>'dispatch_link')));
+if ($_POST['order_view_mode'] == 'OutstandingOnly') {\r
+ //array_substitute($cols, 3, 1, _("Cust Order Ref"));\r
+ array_append($cols, array(\r
+ array('insert'=>true, 'fun'=>'dispatch_link'),\r
+ array('insert'=>true, 'fun'=>'edit_link')));\r
} elseif ($_POST['order_view_mode'] == 'InvoiceTemplates') {
array_substitute($cols, 3, 1, _("Description"));