X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=order_lines_view.php;h=d289213d1fb5ace3824566a0bfab33e8fa170c06;hb=d03c215ae25f4595d5730cd9996967f1898b2309;hp=97de2957538365988ad3bc7a38be3da78035beba;hpb=b26ccd4796cfd5771dd2682963d975d8396457d5;p=order_line_extra.git diff --git a/order_lines_view.php b/order_lines_view.php index 97de295..d289213 100644 --- a/order_lines_view.php +++ b/order_lines_view.php @@ -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(); ?> +