From bdc7ff0cfca8d9a30d7163810fbc8f2c276891da Mon Sep 17 00:00:00 2001 From: Maxime Bourget Date: Sun, 5 May 2013 14:27:38 +0100 Subject: [PATCH] Add input for date and comment --- includes/order_lines.inc | 14 ++++++++++---- order_lines_view.php | 3 ++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/includes/order_lines.inc b/includes/order_lines.inc index 0c0b097..716dd95 100644 --- a/includes/order_lines.inc +++ b/includes/order_lines.inc @@ -12,16 +12,22 @@ function order_link($row) } function input_date_details($row, $date) { - return date_cells( null, 'name'); - +$row_id = $row['id']; + return " + +"; } function input_comment_details($row, $comment) { - return label_cell($comment); +$row_id = $row['id']; + return " + +"; } function get_order_details_extra($customer_id) { - $sql = "SELECT so.order_no + $sql = "SELECT sod.id + , so.order_no , stk_code , quantity - qty_sent , required_date diff --git a/order_lines_view.php b/order_lines_view.php index ee07f22..18aed7c 100644 --- a/order_lines_view.php +++ b/order_lines_view.php @@ -54,7 +54,8 @@ if(isset($customer_id)) { $cols = array( - _("Order #") => array('fun'=>'view_link', 'ord' => '') + 'detail_id' => 'skip' + , _("Order #") => array('fun'=>'view_link', 'ord' => '') ,_("Item Code") => array('ord' => '') ,_("Quantity") => array('type' => 'qty') ,_("Required Date") => array('fun' => 'input_date_details') -- 2.30.2