Target hours

/rest/target_hours/staff/4

  • Get for staff ID 4
Example result
<?xml version="1.0" encoding="UTF-8"?>
<xml>
  <target_hours>8</target_hours>
  <has_holiday>false</has_holiday>
  <holiday></holiday>
  <has_vacation>true</has_vacation>
  <vacation start_date="2018-07-01 00:00:00" end_date="2018-07-31 00:00:00" ... />
  <date>2018-07-11</date>
</xml>

Nota bene:

  • Public/bank holidays are already deducted from the target_hours in the response
  • Vacations are not deducted from the target_hours in the response. Please use has_vacation to recognize days where the member of staff is on vacation.

/rest/target_hours/staff/4/2018/7/1

  • Get for staff ID 4
  • Get for 2018/Jul/01
Same result as above