} elseif ($order_type == 'JG') {
         $class_o->updateProductStockStatus($oiid, $stock_status);
         if ($updateStatusAuto) {
             $class_o->updateProductStatus($oiid, $new_status, 'auto-set');
         }
     } else {
         $class_do->updateStockStatus($oiid, $stock_status);
         if ($updateStatusAuto) {
             $class_do->updateStatus($oiid, $new_status, 'auto-set');
         }
     }
 }
 //CHECK FOR FRAUD RISK
 FraudRiskChecker::checkAndCancelRiskyOrders();
 //SP ORDERS
 $oi_sp = $class_jo->retrieveOpenOrdersItems();
 foreach ($oi_sp as $oiid => $oi) {
     //SAVE CURRENT ITEM STARS FOR NEW ORDERS IF NOT YET SET BEFORE
     if ($oi['status'] == '1' && $oi['products_stars'] == 0 && $oi['stars'] > 0) {
         $class_jo->updateItemStars($oiid, $oi['stars']);
     }
     //OTHER THEN ZALANDO, ORDERS NEED TO BE HOLD FOR A SPECIFIC TIME
     //($duration_hold_not_zalando_orders), SP RULE BASED ON IMPORT TIME
     //18.09.2014 - kocu added eBay to be handled the same like Zalando
     $sp_allow_to_be_processed_directly = array('8', '10');
     $import_timestamp = strtotime($oi['import_date']);
     if (in_array($oi['jng_sp_id'], $sp_allow_to_be_processed_directly) || $timestamp_raw > $import_timestamp + $duration_hold_not_zalando_orders) {
         $oi['order_quantity'] = intval($oi['order_quantity']);
         if ($oi['ds_prioritized'] == '1') {
             $priority = 'TP';
         } elseif ($oi['jng_sp_id'] == '8') {