X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=item_schedule.php;h=4de176c997cd0776f596f6d1d1a743d9fac0e809;hb=29ab8cebdbc11563be7f9dfb1f5c3314f8715b43;hp=329d6fcc6a276d933289758fbd202c54f4afc822;hpb=f32dac729c87051f52b61df2ccca7eff0300d7c0;p=order_line_extra.git diff --git a/item_schedule.php b/item_schedule.php index 329d6fc..4de176c 100644 --- a/item_schedule.php +++ b/item_schedule.php @@ -1,4 +1,3 @@ - ',time()); +?>GETPOSTactivate('item_schedule'); //if (!@$_GET['popup']) start_form(); -if (!isset($_POST['stock_id'])) - $_POST['stock_id'] = get_global_stock_item(); $stock_id = $_POST['stock_id']; stock_costable_items_list_cells(_("Item:"), 'stock_id', $stock_id); + end_row(); end_table(1); -$scheduler = new ItemScheduler($stock_id); +$params = in_ajax() ? new ScheduleParameters($_POST) : null; +$scheduler = new ItemScheduler($stock_id, 'DEF', $params); -div_start('item_schedule'); start_table(TABLESTYLE); $th = $scheduler->tableHeader(); @@ -65,14 +77,85 @@ table_header($th); $scheduler->generateTable(); end_table(); -div_end(); -submit_center_first('Update', _("Update"), true, '', 'default', true); -submit_center_last('Cancel', _("Cancel"), true, '', 'cancel', true); +submit_center_first('Update', _("Update"), '', 'default', false); +submit_center_last('Cancel', _("Cancel"), '', 'cancel', false); end_form(); +div_end(); end_page(); ?> + + + +