Page 1 of 1

TimesheetRetrieve Method Can't Differentiate the Admin Sched and Lunch Break

Posted: Thu May 14, 2020 2:57 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

Re: TimesheetRetrieve Method Can't Differentiate the Admin Sched and Lunch Break

Posted: Thu May 14, 2020 3:16 am
by Muqeet
Hello Sunny,

We don't give any title or type to a schedule block. Only way to differentiate blocks is through their PayrollCategory.

Re: TimesheetRetrieve Method Can't Differentiate the Admin Sched and Lunch Break

Posted: Fri May 15, 2020 5:45 am
by sunny
Hi Muqeet,

Thanks for the reply,

Is there any way to add Schedule Rate? so I can differentiate the those two in payroll category

https://prnt.sc/sh4nl8
Thanks,
Sunny

Muqeet wrote: ↑Thu May 14, 2020 3:16 am Hello Sunny,

We don't give any title or type to a schedule block. Only way to differentiate blocks is through their PayrollCategory.

Re: TimesheetRetrieve Method Can't Differentiate the Admin Sched and Lunch Break

Posted: Fri May 15, 2020 7:09 am
by Muqeet
Not through old API but with our Rest API it's possible to add schedule rates. Please follow the documentation link below.
http://developer.simprogroup.com/apidoc ... 54e0f5a23a

Re: TimesheetRetrieve Method Can't Differentiate the Admin Sched and Lunch Break

Posted: Mon Apr 12, 2021 3:34 am
by sunny
Hi Muqueet,

Can we please request to include the "scheduletype" of the timesheet on the return object of the old API method "TimesheetRetrieve" , is that possible?

https://tinyurl.com/ydlunlr5

Kinds Regards,
Sunny

Re: TimesheetRetrieve Method Can't Differentiate the Admin Sched and Lunch Break

Posted: Mon Apr 12, 2021 3:52 am
by Muqeet
Old api is in maintenance mode only, we do not introduce new features in it.