denorm queue works (with running quantity)
[order_line_extra.git] / order_lines_view.php
index 97de2957538365988ad3bc7a38be3da78035beba..d289213d1fb5ace3824566a0bfab33e8fa170c06 100644 (file)
@@ -41,8 +41,17 @@ start_table(TABLESTYLE_NOBORDER);
 start_row();
 
 
-if(isset($_GET['customer_id']) && !isset($_POST['customer_id'])) $_POST['customer_id']=$_GET['customer_id'];
-$customer_id = $_POST['customer_id'];
+if(!isset($_POST['customer_id'])) {
+       if(isset($_GET['customer_id'])) {
+               $customer_id = $_GET['customer_id'];
+               $_POST['customer_id'] = $customer_id;
+       }
+else $customer_id = null;
+
+}
+else {
+       $customer_id = $_POST['customer_id'];
+}
 customer_list_cells(_("Select a customer: "), 'customer_id', $customer_id, true, true);
 
 
@@ -64,7 +73,7 @@ if($customer_id) {
                'detail_id' => 'skip'
                ,       _("Order #") => array('fun'=>'view_link', 'ord' => '')
                ,_("Item Code") => array('ord' => '')
-               ,_("Quantity") => array('type' => 'qty')
+               ,_("Quantity") => array('type' => 'qty', 'dec' => 0)
        ,_("Required Date") => array('fun' => 'input_date_details', 'ord' => '')
        ,_("Comment") => array('fun' => 'input_comment_details', 'ord' => '')
        );
@@ -75,11 +84,12 @@ else {
        'customer id' => 'skip',
 _("Customer") => array('ord' => '', 'fun' => 'customer_link'),
 _("Branch") => array('ord' => ''),
-_("Delivery Date") => array('ord' => ''),
-_("Quantity") => array('ord' => ''),
+_("Delivery Date") => array('ord' => '', 'type' => 'date'),
+_("Quantity") => array('ord' => '', 'type' => 'qty', 'dec' => 0),
 _("Amount") => array('ord' => '', 'type' => 'amount'),
 _("required date") => array('ord' => '', 'type' => 'date'),
-_("comment") => array('ord' => ''),
+_("Comments") => array('ord' => '', 'fun' => 'aggregate_comment'),
+_("comment 2 ") =>  'skip'
        );
 }
 
@@ -97,3 +107,22 @@ submit_center_last('Cancel', _("Cancel"), true, '', 'cancel', true);
        end_form();
        end_page();
 ?>
+<style>
+span.tooltip{ display:none;}
+span.tooltip {
+      position: absolute;
+      width: 200px;
+      color: rgb(113, 157, 171);
+      background: rgb(255, 255, 255);
+      border: 1px solid rgb(113, 157, 171);
+}
+
+:hover + span.tooltip, span.tooltip:hover {
+       display: inline;
+}
+span.before-tooltip {
+       color: #800;
+       font-style: italic;
+}
+
+</style>