Splitter Test written. Doesn't pass.
[order_line_extra.git] / item_schedule.php
index acbf4be748878dd9e1a707ed3342eb73e7cd6f98..accb8da14034b75e4b37561ccb3dd7a7ad2f82b2 100644 (file)
@@ -20,6 +20,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");
+include_once("config.php");
 
 $page_security = 'SA_ORDERLINEX_EDIT';
 add_access_extensions();
@@ -39,12 +40,6 @@ start_form();
 start_table(TABLESTYLE_NOBORDER);
 start_row();
 
-echo date('h:i:s <br>',time());
-?>GET<?php
-print_r($_GET);
-?>POST<?php
-print_r($_POST);
-
 if (!isset($_POST['stock_id'])) {
 if (isset($_GET['stock_id']))
 {
@@ -55,7 +50,9 @@ else {
        }
 }
 
-if (list_updated('stock_id') || in_ajax()) $Ajax->activate('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();
@@ -72,7 +69,6 @@ if(isset($stock_id)) echo '<input type="hidden" name="last_stock_id" value="'.$s
 
 if(isset($_POST['Update'])) {
        $Ajax->activate('item_schedule');
-               echo 'youpiii';
        // Restore the parameters
        $params = new ScheduleParameters($_SESSION['schedule_parameters']);
        $params->setMode('update');
@@ -82,7 +78,7 @@ else {
        // save parameters form update
        $_SESSION['schedule_parameters'] = $_POST;
 }
-$scheduler = new ItemScheduler($stock_id, 'DEF', $params);
+$scheduler = new ItemScheduler($stock_id, OrderXtraConfig::$default_location, $params);
 $scheduler->action();
 
 start_table(TABLESTYLE);