_setCarCosts

(API version 2.0)

int _setCarCosts ( string kodf , string username , string pass , WDS_CarCostsItem costdata )

Description

Function change costs and add new ones.

Categories

Parameters

string kodf
company code
string username
user name
string pass
password
WDS_CarCostsItem costdata

Return value

int

0 - incorrect login
-1 - missing edit permissions
-2 - car id not found or user has not permissions
-3 - logbook is locked
-4 - duplication
-5 - cost was not found
-6 - cost doesn't belong to user, who can edit only own costs

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_setCarCosts($kodf, $username, $pass, $costdata);

Test

To test the function, enter parameters in form below and press Try it out button.

company code
user name
password
WDS_CarCostsItem costdata
date (local time)
number
source
Type
description
place
kilometres
moto hours odometer
amount
price per unit without VAT
total price without VAT
percentage VAT rate
total price amount of VAT
total price including VAT
currency
vehicle's ID
1 - fuel
2 - CNG
3 - electricity
0 - other
Paid by driver 0/1
cost's ID
note
user name
driver
supplier
tanked to the full 0/1
petrol station's ID - from own places
petrol station
refuel direction:
0 - not specified
1 - ban
4 - only small amount of petrol to drive to allowed petrol station
8 - tank to the full
driver's ID
0 .. public
1 .. corporate
2 .. homemade
3 .. unrecognized
Unique identificator

* Required field