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

Posts about the simPRO API. Help/support/how-to etc.
Forum rules
  • Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
  • No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
  • Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
  • Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
  • Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
  • Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
  • Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
  • Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
Post Reply
sunny
Posts: 8
Joined: Tue May 12, 2020 2:10 am

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

Post by sunny » Thu May 14, 2020 2:57 am

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
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

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

Post by Muqeet » 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.
Muqeet
API Developer | simPRO Software Group
sunny
Posts: 8
Joined: Tue May 12, 2020 2:10 am

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

Post by sunny » Fri May 15, 2020 5:45 am

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.
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

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

Post by Muqeet » Fri May 15, 2020 7:09 am

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
Muqeet
API Developer | simPRO Software Group
sunny
Posts: 8
Joined: Tue May 12, 2020 2:10 am

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

Post by sunny » Mon Apr 12, 2021 3:34 am

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
Muqeet
Posts: 772
Joined: Mon Dec 03, 2018 3:24 am

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

Post by Muqeet » Mon Apr 12, 2021 3:52 am

Old api is in maintenance mode only, we do not introduce new features in it.
Muqeet
API Developer | simPRO Software Group
Post Reply