TimesheetRetrieve Method Lack of Details

Wish the API had something it doesn't? Post here!
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 Lack of Details

Post by sunny » Tue May 12, 2020 2:26 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
Post Reply