Primavera import changes + test cases
Multi platform library to read and write schedule data
Brought to you by:
joniles
Changes made to the library to align pmxml import with the xer import. I have attached a patch, changed files as well as sample data in both xer and xml formats for review.
- Added Project ID to match value from PrimaveraReader
- Change setPercentageComplete to support Physical Percent, Duration Percent and Units Percent. The percent complete method is captured in the PercentCompleteType field.
- Changed baseline values to match values from PrimaveraReader. target_ values match Planned
- Added ActualDuration to match value from PrimaveraReader act_drtn_hr_cnt
- Added Duration. This is the completed duration or the current task duration taking into account actual and remaining (Actual + Remaining is captured in AtCompletion values)
- Changed LateStart, LateFinish, EarlyStart, EalryFinish values to pull from correct XML fields
- Start and End should come from the start and end date xml values. This covers the case where the task is running late and hasn't been complete. Remaining Start / End date
- Added MILESTONE_MAP and milestone logic from PrimaveraReader
- Mark a task as critical when the late start is less than or equal to the early start. This takes into account Primavera negative float
- Add cost data to tasks when the resources are processed. This is so that we include material values in the actual, remaining and baseline cost values
- Start and End dates should look at restart_date and reend_date for open tasks. This shows the correct dates when a task is running late
Thanks for the contribution, I'll integrate the changes this week.
I've added these changes to Git. Thanks for the contribution!
Thanks for updating Git.
Looks like the merge brought in comments for setLateStart, setEarlyStart, etc. Attaching a patch from git.
Thanks for spotting that - I've applied the patch.