Cost Plans details are not copied exactly and discrepancies exist on the new cost plan.
STEPS TO REPRODUCE:
1. Go to a project > Financial > cost plan
2. Select a cost plan that has hundreds of detail rows,
e.g 250+ rows
3. Right-click the cost plan and select Copy.
Copy modal closes at this point.
4. Keep refreshing the screen. If the refreshing is timed well and enough times, the following happens:
Actual:
Although the new cost plan in the list, the following are observed when refreshing keeps happening during the copy process/duration:
a. The newly created cost plan copy shows partial data.
b. A generic API-1019 error appears in the UI with a corresponding deadlock error appears in the APP log.
c. The total cost is not set on the plan.
d. Detail rows get created before the Parent row and has Parent ID from a cost plan it got copied from.
Expected:
The total cost should be populated.
No API error should appear during the copy process.
16.4.1
DE184222
This will be under Engineering review.