_getDriverDiets

(API version 2.0)

WDS_DriverDietItem[] _getDriverDiets ( string kodf , string username , string pass , string DateFrom , string DateTo , int IdCar , int IdDriver , int CarRentalId )

Description

Travel Refund function

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
string DateFrom
Start of time window in local time format dd.mm.YYYY hh:ii:ss
string DateTo
End of time window in local time format dd.mm.YYYY hh:ii:ss
int IdCar
unique vehicle identifier, -1 for all (but either the driver or the vehicle or the travel order id must be specified exactly)
int IdDriver
unique driver identifier, -1 for all (but either driver or vehicle or travel order id must be specified exactly)
int CarRentalId
Id of the travel order / rental car request form, -1 for all records (but either the driver or the vehicle or the travel order id must be entered exactly)

Return value

WDS_DriverDietItem[]
  • WDS_DriverDietItem
    • string Day
    • int IdDriver
    • WDS_DriverDietSumItem[]
      • WDS_DriverDietSumItem
        • int Inland

          0 - inland, 1 - international

        • string MPZ

          The country, where the driver spent the longest time

        • string Day

          Diets calculated to the day

        • string Duration

          Time in seconds

        • float Distance

          Driven distance [km]

        • int Hour

          Number of hours

        • float BasicRate

          basic rate

        • string Curr

          Currency

        • float DietAmount

          the final amount of the meal allowance to be paid in currency

        • float PocketAmout

          final amount of pocket money to be paid in currency

        • float Sum

          sum of board and pocket money in currency

        • int M1

          the driver was provided with breakfast (only for CarRentalId > 0)

        • int M2

          the driver was provided with lunch (only for CarRentalId > 0)

        • int M3

          the driver was provided with dinner (only for CarRentalId > 0)

        • float ReducedP

          percentage reduction of the base rate (only for CarRentalId > 0)

        • float Reduced

          reduction of the base rate in currency (only for CarRentalId > 0)

        • float ExchangeRate

          Exchange rate

        • float AmountInCompanyCurrency

          Amount In Company Currency

    • WDS_DriverDietDetItem[]
      • WDS_DriverDietDetItem
        • string MPZ

          the state where the driver spent the most time

        • string Country

          Country

        • string Date_from

          date and time of the start of the journey

        • string Date_to

          date and time of the end of the journey

        • string Duration

          time in seconds

        • float Distance

          Driven distance [km]

        • int Hour

          hours

        • float BasicRate

          basic rate

        • string Curr

          currency

        • string Route

          Route

        • string Vehicle

          Vehicle

        • string Driver

          driver's name

        • string Crew

          crew names

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_getDriverDiets($kodf, $username, $pass, $DateFrom, $DateTo, $IdCar, $IdDriver, $CarRentalId);

Test

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

Company code
Login username
Login password
Start of time window in local time format dd.mm.YYYY hh:ii:ss
End of time window in local time format dd.mm.YYYY hh:ii:ss
unique vehicle identifier, -1 for all (but either the driver or the vehicle or the travel order id must be specified exactly)
unique driver identifier, -1 for all (but either driver or vehicle or travel order id must be specified exactly)
Id of the travel order / rental car request form, -1 for all records (but either the driver or the vehicle or the travel order id must be entered exactly)

* Required field