Display new dates in order view. But BUG
authorMaxime Bourget <bmx007@gmail.com>
Fri, 7 Jun 2013 07:39:31 +0000 (08:39 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Fri, 7 Jun 2013 07:39:31 +0000 (08:39 +0100)
includes/order_lines.inc
order_lines_view.php

index 891da684cd16f4e064109f87f0ac69bcaa64502b..6a85826406505200569efedf60f31664f3f84eab 100644 (file)
@@ -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
index 0bbc5e45b9b9b865608db862b5e56d3b24f652bc..88323d95e33f4d8fa2f0748429304c97e7aa31b7 100644 (file)
@@ -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' => '')
        );
 }