示例#1
0
        }
    }
}
$logger->write("- {$counter} JG Items Updated");
$logger->write("Task 1 - End");
$logger->write("Task 2 (ORDER CHECK N SET COMPLETE) - Start");
////////////////////////////////
// ORDER CHECK N SET COMPLETE //
////////////////////////////////
use_class('orders');
$class_o = new orders();
$class_o->checkAndSetCompleteOrders();
$logger->write("- JG Orders Updated");
use_class('jng_sp_orders');
$class_jo = new jng_sp_orders();
$class_jo->checkAndSetCompleteOrders();
$logger->write("- SP Orders Updated");
$logger->write("Task 2 - End");
$logger->write("Task 3 (IMPROVEMENTS/MIMS) - Start");
//////////////////////////////////////////////////////////////
// 1) IMPROVEMENTS AUTO MOVE FROM TESTINGS TO CHECKINGS TAB //
// 2) IMPROVEMENTS DEADLINE REMINDER (STARTING FROM D-1)    //
//////////////////////////////////////////////////////////////
$username = '******';
$today = date('Y-m-d', strtotime('tomorrow'));
use_class('improvement');
$q = tep_db_query("SELECT improvements_id FROM improvements WHERE status=4 AND check_date<='{$today}'");
while ($row = tep_db_fetch_array($q)) {
    $i = new improvement($row['improvements_id']);
    $i->updateStatus('4', '5', $username);
}