X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Finquiry%2Fsales_orders_view.php;h=27892adbcec1384e10c012b4d61777dc6d852106;hb=abc782230f6d6cfd7be85e934e3343e7211935d7;hp=5f23e891a989b0aa497b711da1e71c645e7e9f12;hpb=b3b458b39c2b24680c486e80d52a4880c011dce6;p=fa-stable.git diff --git a/sales/inquiry/sales_orders_view.php b/sales/inquiry/sales_orders_view.php index 5f23e891..27892adb 100644 --- a/sales/inquiry/sales_orders_view.php +++ b/sales/inquiry/sales_orders_view.php @@ -231,7 +231,7 @@ if($show_dates) { start_row(); } stock_items_list_cells(_("Item:"), 'SelectStockFromList', null, true); - +customer_list_cells(_("Select a customer: "), 'customer_id', null, true); if ($trans_type == ST_SALESQUOTE) check_cells(_("Show All:"), 'show_all'); @@ -246,7 +246,7 @@ end_table(1); // 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']); if ($trans_type == ST_SALESORDER) $cols = array( @@ -276,9 +276,11 @@ else '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') { + //array_substitute($cols, 3, 1, _("Cust Order Ref")); + array_append($cols, array( + array('insert'=>true, 'fun'=>'dispatch_link'), + array('insert'=>true, 'fun'=>'edit_link'))); } elseif ($_POST['order_view_mode'] == 'InvoiceTemplates') { array_substitute($cols, 3, 1, _("Description"));