From: Maxime Bourget Date: Fri, 7 Jun 2013 07:39:31 +0000 (+0100) Subject: Display new dates in order view. But BUG X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=983f59d5bc77e582c8a47ba44d20228566b7b8a4;p=order_line_extra.git Display new dates in order view. But BUG --- diff --git a/includes/order_lines.inc b/includes/order_lines.inc index 891da68..6a85826 100644 --- a/includes/order_lines.inc +++ b/includes/order_lines.inc @@ -150,6 +150,8 @@ function get_order_details_extra($customer_id, $location) { , GREATEST(0, LEAST(qoh.quantity - quantity_before, sod.quantity - qty_sent)) , quantity_before , required_date + , hold_until_date + , expiry_date ,comment FROM ".TB_PREF."sales_order_details sod JOIN ".TB_PREF."sales_orders so ON (so.order_no = sod.order_no diff --git a/order_lines_view.php b/order_lines_view.php index 0bbc5e4..88323d9 100644 --- a/order_lines_view.php +++ b/order_lines_view.php @@ -75,7 +75,9 @@ 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' => '') + ,_("Required Date") => array('fun' => 'input_date_details', 'ord' => '') + ,_("hold until") => array('ord' => '', 'type' => 'date') + ,_("expiry") => array('ord' => '', 'type' => 'date') ,_("Comment") => array('fun' => 'input_comment_details', 'ord' => '') ); }