Closed iMohannad closed 1 year ago
Hello! Thanks for getting in touch.
I think the issue is that P6 derives the cost shown at the activity level from the activity's resource assignments and expense items. You can see how MPXJ generates the cost when reading an XER file in the code shown here and here. My understanding is that P6 would be doing something similar when it reads an XER file. Based on that information, you'd need to modify the expense items or resource assignments for your activity in order to change the cost shown in P6.
Hope that helps!
Hi,
I have a XER project file and I am trying to update the cost in a specific task. I can read the cost succesfully and update it using task.setCost(). However, when I write the ProjectFile into an external XER file, the cost is not updated.
Here's the code example where I try to change any task where the cost is 3000 to 7000: