_setOdometerCorrection
(API version 2.0)float _setOdometerCorrection ( string kodf , string username , string pass , int IdCar , long IdJizda , float Km , int Lock , int Write [ , float phm ] )
Description
Function sets odometer correction.
Categories
Parameters
- string kodf
- company code
- string username
- user name
- string pass
- password
- int IdCar
- vehicle ID
- long IdJizda
- ID of the route
- float Km
- real odometer at the end of the route
- int Lock
- Lock up log book yes / no
- int Write
- write down change
- 0 used for testing whether correction can be done without written anything - float phm
- real value of phm at the end of the route
Return value
Final correction in percentages
A negative value means errors:
-12 ... "Extreme deflection, not permitted"
-15 ... "Tank condition (PHM) is higher than the max capacity of the tank"
other ... "Something went wrong"
Examples
API version 2.0
$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl'); $return = $client->_setOdometerCorrection($kodf, $username, $pass, $IdCar, $IdJizda, $Km, $Lock, $Write, $phm);
Test
To test the function, enter parameters in form below and press Try it out button.