X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=item_schedule.php;h=4de176c997cd0776f596f6d1d1a743d9fac0e809;hb=29ab8cebdbc11563be7f9dfb1f5c3314f8715b43;hp=95463a336264500ddf4d6611f2dc217907c3d96f;hpb=cbab39abf44adfe88570d0973237d30ecb45b3cc;p=order_line_extra.git
diff --git a/item_schedule.php b/item_schedule.php
index 95463a3..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, 'DEF');
+$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,15 +77,15 @@ 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();
?>
+
+
+