The UI action "Calculate Completion Estimates"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2024 12:19 PM - edited ‎04-22-2024 12:19 PM
How the click to the link "Calculate Completion Estimates" on the project form generates result ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2024 07:22 PM
Hi @SUBHAM_SHAW_SN ,
If the TASK field is chosen as DEMAND while creating a Resource Plan, the 'Calculate Completion Estimates' button will not appear on the associated Cost Plan. This is because DEMAND does not require calculation of completion estimates. The button will only be visible on the Cost Plan if the Resource Plan is created by selecting the TASK Field as PROJECT.
the 'Calculate Completion Estimates' Related Link will only be displayed if the TASK field is set as PROJECT.
In OOB, the cost plans which are directly linked with the project are updated, but the cost plans which are linked to the project tasks of the project are not updated when selected 'Calculate Completion Estimates' on the project.
Resolution
Currently, in OOB there is no functionality to update all the cost plans related to the project, as the script queries the cost plans related to the project.
The UI Action 'Calculate Completion Estimates' on Project, calls a function in the script includes "ProjectCalculateAJAX which calls "_updateEACCostPlans" function.
In this function, the glide query on "cost_plan" check if the "task" is the sys_id of the project, so only the cost plan which is directly linked to the project is updated.
As a workaround, updating the OOB script include by adding an OR query to check if the "top_task" as a project sys_id, will query all the project task records. This will check and update the records of the cost plan for the project task also.