version(); // $uid = $common->authenticate(ERP_DB, ERP_USERNAME, ERP_PASSWORD, array()); // $tmp = new newOrder($model, $uid); // $tmp->exec_workflow(16900); $params['id_order'] = 3777; $params['newOrderStatus'] = new StdClass(); $params['newOrderStatus']->id = 2; //Db::getInstance()->execute('DELETE FROM ps_orders_erp WHERE id_order = '.$params['id_order']); $order = new Order($params['id_order']); $erpOrder = new Erporder(); $erpOrder->hookActionOrderStatusPostUpdate($params);