Add input date text.
authorMaxime Bourget <bmx007@gmail.com>
Sun, 5 May 2013 12:38:41 +0000 (13:38 +0100)
committerMaxime Bourget <bmx007@gmail.com>
Sun, 5 May 2013 12:38:41 +0000 (13:38 +0100)
includes/order_lines.inc
order_lines_view.php

index 138af425876d53c9c9c86122b442d488addbdc40..0c0b09763223e4110af391060ebb63692577d911 100644 (file)
@@ -1,4 +1,5 @@
 <?php
+include_once($path_to_root."/includes/ui/ui_input.inc");
 function view_link($dummy, $order_no)
 {
        return  get_customer_trans_view_str(ST_SALESORDER, $order_no);
@@ -10,6 +11,15 @@ function order_link($row)
        "/sales/sales_order_entry.php?NewQuoteToSalesOrder=" .$row['order_no'], ICON_DOC);
 }
 
+function input_date_details($row, $date) {
+ return date_cells( null, 'name');
+
+}
+
+function input_comment_details($row, $comment) {
+       return label_cell($comment); 
+}
+
 function get_order_details_extra($customer_id) {
        $sql = "SELECT so.order_no
        , stk_code
index 6a45716eb6c00782e0671b5444c0d37293d9ef0b..ee07f227c3daf416dfbc4f8a684c8387d28c173d 100644 (file)
@@ -56,9 +56,9 @@ if(isset($customer_id)) {
        $cols = array(
                _("Order #") => array('fun'=>'view_link', 'ord' => '')
        ,_("Item Code") => array('ord' => '')
-               ,_("Quantity")
-,_("Required Date") => array('type' => 'Date')
-,_("Comment")
+               ,_("Quantity") => array('type' => 'qty')
+,_("Required Date") => array('fun' => 'input_date_details')
+,_("Comment") => array('fun' => 'input_comment_details')
        );
 }
 else {