All date columns are editable.
authorMaxime Bourget <bmx007@gmail.com>
Fri, 7 Jun 2013 07:51:38 +0000 (08:51 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Fri, 7 Jun 2013 07:51:38 +0000 (08:51 +0100)
includes/order_lines.inc
order_lines_view.php

index 6a85826406505200569efedf60f31664f3f84eab..d17022263c86f66a4052aa8485eb25f989999b91 100644 (file)
@@ -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
index 88323d95e33f4d8fa2f0748429304c97e7aa31b7..227a15c5d5eab4b86d25fddcd59ebbb1c3635493 100644 (file)
@@ -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' => '')
        );
 }