roykin/erp/oneorderUpdate.php
2016-10-21 11:37:19 +02:00

27 lines
816 B
PHP

<?php
// remove this die if you wanna use that script :p
die;
require_once dirname(__FILE__).'/../config/config.inc.php';
require_once dirname(__FILE__).'/../modules/erporder/erporder.php';
// $model = ripcord::client(ERP_URL.'/xmlrpc/2/object');
// $report = ripcord::client(ERP_URL.'/xmlrpc/2/report');
// $common = ripcord::client(ERP_URL.'/xmlrpc/2/common');
// $common->version();
// $uid = $common->authenticate(ERP_DB, ERP_USERNAME, ERP_PASSWORD, array());
// $tmp = new newOrder($model, $uid);
// $tmp->exec_workflow(16900);
$params['id_order'] = 5;
$params['newOrderStatus'] = new StdClass();
$params['newOrderStatus']->id = 10;
$order = new Order($params['id_order']);
$erpOrder = new Erporder();
$erpOrder->hookActionOrderStatusPostUpdate($params);