From: Maxime Bourget Date: Fri, 7 Jun 2013 07:51:38 +0000 (+0100) Subject: All date columns are editable. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=a02fac64e6d996ef1c2465b88afd02185e6e3b04;p=order_line_extra.git All date columns are editable. --- diff --git a/includes/order_lines.inc b/includes/order_lines.inc index 6a85826..d170222 100644 --- a/includes/order_lines.inc +++ b/includes/order_lines.inc @@ -149,8 +149,9 @@ function get_order_details_extra($customer_id, $location) { , sod.quantity - qty_sent quantity , GREATEST(0, LEAST(qoh.quantity - quantity_before, sod.quantity - qty_sent)) , quantity_before - , required_date + , sod.`priority` , hold_until_date + , required_date , expiry_date ,comment FROM ".TB_PREF."sales_order_details sod diff --git a/order_lines_view.php b/order_lines_view.php index 88323d9..227a15c 100644 --- a/order_lines_view.php +++ b/order_lines_view.php @@ -75,9 +75,11 @@ if($customer_id) { ,_("Item Code") => array('ord' => '', 'fun' => 'item_link') ,_("Quantity") => array('type' => 'qty', 'dec' => 0) ,_("Available") => array('fun' => 'available_quantity', 'dec' => 0, 'ord' => '') - ,_("Required Date") => array('fun' => 'input_date_details', 'ord' => '') - ,_("hold until") => array('ord' => '', 'type' => 'date') - ,_("expiry") => array('ord' => '', 'type' => 'date') + ,_("Before") => 'skip' + ,_("Priority") => array('fun' => 'input_date_details', 'ord' => '') + ,_("Hold Until") => array('fun' => 'input_date_details', 'ord' => '') + ,_("Require By") => array('fun' => 'input_date_details', 'ord' => '') + ,_("Expiry Date") => array('fun' => 'input_date_details', 'ord' => '') ,_("Comment") => array('fun' => 'input_comment_details', 'ord' => '') ); }