} exit; } // # END Ajax suggest search require DIR_WS_CLASSES . 'currencies.php'; $currencies = new currencies(); include DIR_WS_CLASSES . 'order.php'; // # START CONFIGURATION ################################ // # Correction tax pre-values // # Optional Tax Rates, e.g. shipping tax of 17.5% is "17.5" $AddCustomTax = "7.0"; $AddShippingTax = "7.0"; $AddLevelDiscountTax = "7.0"; $AddCustomerDiscountTax = "7.0"; // # END OF CONFIGURATION ################################ $CommentsWithStatus = tep_field_exists(TABLE_ORDERS_STATUS_HISTORY, "comments"); $orders_statuses = array(); $orders_status_array = array(); $orders_status_query = tep_db_query("SELECT orders_status_id, orders_status_name \n\t\t\t\t\t\t\t\t\t\t FROM " . TABLE_ORDERS_STATUS . " \n\t\t\t\t\t\t\t\t\t\t WHERE language_id = '" . (int) $languages_id . "'\n\t\t\t\t\t\t\t\t\t\t ORDER BY orders_status_id\n\t\t\t\t\t\t\t\t\t \t"); while ($orders_status = tep_db_fetch_array($orders_status_query)) { $orders_statuses[] = array('id' => $orders_status['orders_status_id'], 'text' => $orders_status['orders_status_name']); $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name']; } $action = isset($_GET['action']) ? $_GET['action'] : 'edit'; $sub_action = isset($_POST['sub_action']) && $_POST['sub_action'] ? $_POST['sub_action'] : 'edit'; // # Update Inventory Quantity $order_query = tep_db_query("SELECT orders_id FROM " . TABLE_ORDERS . " WHERE orders_id = '" . (int) $oID . "'"); if (tep_not_null($action)) { switch ($action) { // # 1. UPDATE ORDER case 'update_order':
} exit; } // # END Ajax suggest search $countries_pull_down = array(); $countries_query = tep_db_query("SELECT countries_name FROM countries ORDER BY countries_id"); while ($countries_row = tep_db_fetch_array($countries_query)) { $countries_pull_down[] = array(id => $countries_row['countries_name'], text => $countries_row['countries_name']); } require DIR_WS_CLASSES . 'currencies.php'; $currencies = new currencies(); $sID = (int) $_GET['sID']; require DIR_FS_CLASSES . 'supply_request.php'; // # "Status History" $OldNewStatusValues = tep_field_exists(TABLE_SUPPLY_REQUEST_STATUS_HISTORY, "old_value") && tep_field_exists(TABLE_SUPPLY_REQUEST_STATUS_HISTORY, "new_value"); $CommentsWithStatus = tep_field_exists(TABLE_SUPPLY_REQUEST_STATUS_HISTORY, "comments"); $supply_request_statuses = array(); $supply_request_status_array = array(); $supply_request_status_query = tep_db_query("SELECT supply_request_status_id, supply_request_status_name \r\n\t\t\t\t\t\t\t\t\t\t\t\t FROM " . TABLE_SUPPLY_REQUEST_STATUS . " \r\n\t\t\t\t\t\t\t\t\t\t\t\t WHERE language_id = '" . (int) $languages_id . "'\r\n\t\t\t\t\t\t\t\t\t\t\t\t"); while ($supply_request_status = tep_db_fetch_array($supply_request_status_query)) { $supply_request_statuses[] = array('id' => $supply_request_status['supply_request_status_id'], 'text' => $supply_request_status['supply_request_status_name']); $supply_request_status_array[$supply_request_status['supply_request_status_id']] = $supply_request_status['supply_request_status_name']; } $action = isset($_GET['action']) ? $_GET['action'] : 'edit'; // # Update Inventory Quantity $supply_request_query = tep_db_query("SELECT products_id, products_quantity \r\n\t\t\t\t\t\t\t\t FROM " . TABLE_SUPPLY_REQUEST_PRODUCTS . " \r\n\t\t\t\t\t\t\t\t WHERE supply_request_id = '" . (int) $sID . "'\r\n\t\t\t\t\t\t\t\t"); if (tep_not_null($action)) { switch ($action) { // # 1. UPDATE ORDER ##### case 'update_request': $sID = tep_db_prepare_input($_GET['sID']);