X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=order_lines_view.php;h=077e3767793f54ef3761888fc94485b2b083b271;hb=ee3469d3ffd74d2a6be87d3dd0a9541a14bcdfde;hp=72d38fcdaca75b2d198cb54d2cad43dbd2d70c4e;hpb=9d5ce0f333787c7c6e349c3822762f946b105669;p=order_line_extra.git diff --git a/order_lines_view.php b/order_lines_view.php index 72d38fc..077e376 100644 --- a/order_lines_view.php +++ b/order_lines_view.php @@ -18,6 +18,7 @@ include_once($path_to_root . "/reporting/includes/reporting.inc"); include_once("includes/order_lines.inc"); include_once("includes/splitter.inc"); +include_once("includes/bulk_updater.inc"); $page_security = 'SA_ORDERLINEX_EDIT'; add_access_extensions(); @@ -25,8 +26,10 @@ add_access_extensions(); $_SESSION['page_title'] = _($help_context = "Edit lines extra parameters"); // Process POST +filter_data($_POST); update_extra_order_details(); split_order_details(); +bulk_update_order_details(); $js = ""; @@ -57,7 +60,7 @@ else { } customer_list_cells(_("Select a customer: "), 'customer_id', $customer_id, true, true); -if($customer_id !== null) { +if($customer_id != null) { if(!isset($_POST['item_like'])) { if(isset($_GET['item_like'])) { $item_like = $_GET['item_like']; @@ -96,7 +99,8 @@ if($customer_id) { ,_("Hold Until") => array('fun' => 'input_hold_until_date_details', 'ord' => '') ,_("Require By") => array('fun' => 'input_required_date_details', 'ord' => '') ,_("Expiry Date") => array('fun' => 'input_expiry_date_details', 'ord' => '') - ,_("Comment") => array('fun' => 'input_comment_details', 'ord' => '') + ,_("Comment") => array('fun' => 'input_comment_details', 'ord' => '') + ,'' => array('fun' => 'input_check_details') ); } else { @@ -124,17 +128,36 @@ $table->width = "80%"; display_db_pager($table); function display_split_area() { -start_table(TABLESTYLE_NOBORDER); qty_cells('Before', 'start_offset', -5); -date_cells('Start', 'start_date'); -date_cells('End', 'end_date'); +date_cells('Start', 'start_date', null, null, 0, 0, 1001); +date_cells('End', 'end_date', null, null, 0, 0, 1001); qty_cells('After', 'end_offset', 2); qty_cells('Max', 'max_quantity', 6); submit_cells('Split', 'Split'); -end_table(); } + +function display_bulk_area() { +date_cells('Priority', 'bulk[priority_date]', null, null, 0, 0, 1001); +qty_cells(null, 'bulk[priority_time]', '12:00:00'); +date_cells('Hold', 'bulk[hold_until_date]', null, null, 0, 0, 1001); +date_cells('Required', 'bulk[required_date]', null, null, 0, 0, 1001); +date_cells('Expiry', 'bulk[expiry_date]', null, null, 0, 0, 1001); +text_cells('Comment', 'bulk[comment]'); +submit_cells('Bulk', 'Bulk'); +} + + +if($customer_id !== null) { +start_table(TABLESTYLE); +start_table(TABLESTYLE_NOBORDER); display_split_area(); +end_table(); +start_table(TABLESTYLE_NOBORDER); +display_bulk_area(); +end_table(); +end_table(); +} br(1); @@ -166,3 +189,37 @@ span.before-tooltip { } + +