}
function input_date_details($row, $date) {
- return date_cells( null, 'name');
-
+$row_id = $row['id'];
+ return "
+<input type='text' value='$date' name='detail[$row_id][required_date]'>
+";
}
function input_comment_details($row, $comment) {
- return label_cell($comment);
+$row_id = $row['id'];
+ return "
+<input type='text' value='$comment' name='detail[$row_id][comment]'>
+";
}
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
$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')