Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Compare Timesheets to Forecast Schedules is not working #6

Open
kmasden opened this issue Aug 20, 2018 · 1 comment
Open

Compare Timesheets to Forecast Schedules is not working #6

kmasden opened this issue Aug 20, 2018 · 1 comment

Comments

@kmasden
Copy link

kmasden commented Aug 20, 2018

I am getting this error:

FAILED TypeError: Cannot read property 'harvest_id' of undefined
at /Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/lib/reconcilier.js:139:26
at arrayEach (/Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/node_modules/lodash/lodash.js:516:11)
at Function.forEach (/Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/node_modules/lodash/lodash.js:9342:14)
at /Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/lib/reconcilier.js:138:11
at arrayEach (/Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/node_modules/lodash/lodash.js:516:11)
at Function.forEach (/Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/node_modules/lodash/lodash.js:9342:14)
at /Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/lib/reconcilier.js:118:7
at arrayEach (/Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/node_modules/lodash/lodash.js:516:11)
at Function.forEach (/Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/node_modules/lodash/lodash.js:9342:14)
at reconcilier (/Users/kentmasden/Documents/projects/Personal/Harvest-Forecast-tools-master/lib/reconcilier.js:116:5)

When I try to compare the time sheets to the forecast. Any help would be appreciated.

@kmasden
Copy link
Author

kmasden commented Aug 21, 2018

The Time Off Project in Forcast does not have a client Id or a harvest id and that seems to be causing the issue:

allocation
:
0
day
:
"2018-08-06"
id
:
15395708
notes
:
null
person_id
:
360778
project
:
client_id
:
null
harvest_id
:
null
name
:
"Time Off"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant