Page 1 of 1

TimesheetRetrieve Method Lack of Details

Posted: Tue May 12, 2020 2:26 am
by sunny
Hi,

Our legacy code using the simpro API with method of "TimesheetRetrieve" and it return an object like this:

Admin Sched:
array (size=11)
'EmployeeID' => int 1908
'Date' => string '2020-05-07' (length=10)
'StartTime' => string '7:00am' (length=6)
'ISO8601Start' => string '2020-05-07T07:00:00+08:00' (length=25)
'EndTime' => string '7:30am' (length=6)
'ISO8601End' => string '2020-05-07T07:30:00+08:00' (length=25)
'JobNo' => string '' (length=0)
'TotalHours' => float 0.5
'PayrollCategory' => string 'Normal Time' (length=11)
'BlockTextColor' => string '' (length=0)
'Cost' => float 24.5
Lunch Break:
array (size=11)
'EmployeeID' => int 1908
'Date' => string '2020-05-08' (length=10)
'StartTime' => string '12:45pm' (length=7)
'ISO8601Start' => string '2020-05-08T12:45:00+08:00' (length=25)
'EndTime' => string '1:15pm' (length=6)
'ISO8601End' => string '2020-05-08T13:15:00+08:00' (length=25)
'JobNo' => string '' (length=0)
'TotalHours' => float 0.5
'PayrollCategory' => string 'Normal Time' (length=11)
'BlockTextColor' => string '' (length=0)
'Cost' => float 24.5


The problem is, i cant differentiate the Lunch Break into an Admin Schedule - https://prnt.sc/sf1r2f , please help