Page 1 of 1

[Released] Employee timesheets with incorrect href

Posted: Tue Apr 06, 2021 1:37 am
by gavynj
Hi there,

I am fetching employee timesheets, and then following the _href value to that particular schedule. During testing, I've noticed that Quotes are returning invalid paths. E.g.

Code: Select all

{
    "ScheduleType": "Quote",
    "Reference": "-",
    "_href": "/api/v1.0/companies/39/quotes//sections//costCenters//schedules/162765",
    "Date": "2021-04-06",
    "StartTime": "17:00",
    "EndTime": "17:30",
    "TotalHrs": 0.5,
    "Cost": 20.17
}
If I fetch /api/v1.0/companies/39/schedules/162765 it returns the correct _href:

Code: Select all

{
    "ID": 162765,
    "Type": "quote",
    "Reference": "5933-9437",
    "TotalHours": 0.5,
    "Date": "2021-04-06",
    "Blocks": [
        {
            "Hrs": 0.5,
            "StartTime": "17:00",
            "ISO8601StartTime": "2021-04-06T17:00:00+12:00",
            "EndTime": "17:30",
            "ISO8601EndTime": "2021-04-06T17:30:00+12:00",
            "ScheduleRate": {
                "ID": 84,
                "Name": "Normal Time"
            }
        }
    ],
    "_href": "/api/v1.0/companies/39/quotes/5933/sections/8133/costCenters/9437/schedules/162765",
    "DateModified": "2021-04-06T12:15:48+12:00"
}
Jobs and Activities are working fine.

Can this be fixed please?

Cheers,
Gavyn

Re: Employee timesheets with incorrect href

Posted: Tue Apr 06, 2021 2:04 am
by Muqeet
Hello Gavyn,

Please sent me the employee timesheet endpoint with build url in a private message.

Re: [API-1004] Employee timesheets with incorrect href

Posted: Tue Jun 01, 2021 4:57 am
by Muqeet
The fix has been released with simPRO version 21.2.2