Good to have you around... However, that leads to:
I'll try to get the webservice way running in the meantime.
Got it. Code is now:
Thanks for the tip about the inventory lines, would have never figured this out alone.
Code:
Sorry! Attempt to access restricted file.
We are looking for this file path: modules//.php
We are looking here:
Real file path:
I'll try to get the webservice way running in the meantime.
Got it. Code is now:
PHP Code:
include_once 'include/Webservices/Revise.php';
include_once 'modules/Users/Users.php';
global $adb;
$query = 'SELECT salesorderid FROM vtiger_salesorder WHERE salesorder_no=?';
$params = array('ORD3199');
$result = $adb->pquery($query, $params);
$so_crm_id = $adb->query_result($result, 0, 'salesorderid');
$user = new Users();
$current_user = $user->retrieveCurrentUserInfoFromFile(Users::getActiveAdminId());
$wsid = vtws_getWebserviceEntityId('SalesOrder', $so_crm_id);
$data = array(
'id' => $wsid,
'duedate' => '2016-07-28',
'sostatus' => 'Ingepland'
);
$_REQUEST['action'] = 'SalesOrderAjax';
$so = vtws_revise($data, $current_user);
Thanks for the tip about the inventory lines, would have never figured this out alone.