$_SESSION['page_title'] = _($help_context = "Edit lines extra parameters");
+update_extra_order_details();
+
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(900, 600);
// Orders inquiry table
//
$customer_id = $_POST['customer_id'];
-if(isset($customer_id)) {
+if($customer_id) {
$sql = get_order_details_extra($customer_id);
-
-
$cols = array(
'detail_id' => 'skip'
, _("Order #") => array('fun'=>'view_link', 'ord' => '')
);
}
else {
+ $sql = get_order_summary();
+ $cols = array(
+_("Customer") => array('ord' => ''),
+_("Branch") => array('ord' => ''),
+_("Delivery Date") => array('ord' => ''),
+_("Quantity") => array('ord' => ''),
+_("Amount") => array('ord' => '', 'type' => 'amount'),
+_("required date") => array('ord' => '', 'type' => 'date'),
+_("comment") => array('ord' => ''),
+ );
}