X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Finquiry%2Fsales_orders_view.php;h=2241e1f9dc05a7fe9c157f64d8e738280ec16a9c;hb=32700e43822b5d4afc03747849bd21ff1cd82ea5;hp=676d6ea045f48b93c55d670c10e908ea4a71b875;hpb=f4e4bc5a2ff9f97a20b3a62265926a4c677163f9;p=fa-stable.git diff --git a/sales/inquiry/sales_orders_view.php b/sales/inquiry/sales_orders_view.php index 676d6ea0..2241e1f9 100644 --- a/sales/inquiry/sales_orders_view.php +++ b/sales/inquiry/sales_orders_view.php @@ -106,6 +106,9 @@ function edit_link($row) { global $page_nested; + if (is_prepaid_order_open($row['order_no'])) + return ''; + return $page_nested ? '' : trans_editor_link($row['trans_type'], $row['order_no']); } @@ -196,8 +199,8 @@ if (get_post('_OrderNumber_changed') || get_post('_OrderReference_changed')) // $disable = get_post('OrderNumber') !== '' || get_post('OrderReference') !== ''; if ($show_dates) { - $Ajax->addDisable(true, 'OrdersAfterDate', $disable); - $Ajax->addDisable(true, 'OrdersToDate', $disable); + $Ajax->addDisable(true, 'OrdersAfterDate', $disable); + $Ajax->addDisable(true, 'OrdersToDate', $disable); } $Ajax->activate('orders_tbl'); @@ -246,7 +249,7 @@ $sql = get_sql_for_sales_orders_view($trans_type, get_post('OrderNumber'), get_p if ($trans_type == ST_SALESORDER) $cols = array( - _("Order #") => array('fun'=>'view_link'), + _("Order #") => array('fun'=>'view_link', 'align'=>'right'), _("Ref") => array('type' => 'sorder.reference', 'ord' => '') , _("Customer") => array('type' => 'debtor.name' , 'ord' => '') , _("Branch"), @@ -260,7 +263,7 @@ if ($trans_type == ST_SALESORDER) ); else $cols = array( - _("Quote #") => array('fun'=>'view_link'), + _("Quote #") => array('fun'=>'view_link', 'align'=>'right'), _("Ref"), _("Customer"), _("Branch"), @@ -273,7 +276,6 @@ else _("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'), array('insert'=>true, 'fun'=>'edit_link')));