X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=item_schedule.php;h=1937108e1a2b834d893d3ade96c8a01ca312e940;hb=e83dd263203cb4f16aec72e084825198b5e12259;hp=ef34297e5dde32b70620f572c4a4914634f34580;hpb=a494aa2bcdea4ed718b419b55adbcbabc5f2a5e9;p=order_line_extra.git
diff --git a/item_schedule.php b/item_schedule.php
index ef34297..1937108 100644
--- a/item_schedule.php
+++ b/item_schedule.php
@@ -19,6 +19,7 @@ include_once($path_to_root . "/reporting/includes/reporting.inc");
//include_once("includes/item_scheduler.inc");
include_once("hincludes/lib/php/Boot.class.php");
+include_once("includes/db_order_lines.inc");
$page_security = 'SA_ORDERLINEX_EDIT';
add_access_extensions();
@@ -38,12 +39,6 @@ start_form();
start_table(TABLESTYLE_NOBORDER);
start_row();
-echo date('h:i:s
',time());
-?>GETPOSTactivate('item_schedule');
+if (list_updated('stock_id') || in_ajax()) $Ajax->activate('item_schedule') ;
+else update_queue_quantities() && update_qoh_for_item();
+
//if (!@$_GET['popup'])
// start_form();
@@ -71,17 +68,17 @@ if(isset($stock_id)) echo 'needsUpdate()) {
+ submit_center_first('Update', _("Update"), '', 'default', false);
+ submit_center_last('Cancel', _("Cancel"), '', 'cancel', false);
+}