Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

How is "real work" ...
 
Notifications
Clear all

How is "real work" calculated for a parent activity ?

5 Posts
2 Users
0 Reactions
3,544 Views
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 
[#1404]

Hi Babynus,

2 questions actually:

1) I am facing a problem with the calculation of real work on a few activities: the parent activity does not take into account all the real work of its children activities (see "Parent_real_work_problem.jpg").

I believe this has happened after moving around some activities / projects. In order to investigate where this might have come from, could you tell me where in the source code is the real work calculated for a parent activity ?
My use case is this:
- in Real Work Allocation, log some time on a child activity, and save.
-> I have checked the saveImputation.php file, everything seems ok
-> I haven't found where the update of real work for the parent activity is done :blush:

2) While trying to figure this out, I played in the "demo" Projectorria, and now see something strange: I logged some small amounts of time on a child activity (66.5.2 test1), and when I check the Planning or Activity details, the real work on this activity is different! (see screenshots Activity, Planning, RWA).
These tests are done on the "MyOwnTestProject" of the demo site.
-> Any idea what could cause this ?

Thanks for your help!


 
Posted : 08 Oct 2013 17H11
(@babynus)
Posts: 14952
Member Admin
 

1) I am facing a problem with the calculation of real work on a few activities: the parent activity does not take into account all the real work of its children activities (see "Parent_real_work_problem.jpg").

I don't see "Parent_real_work_problem.jpg" attached 🙁

2) While trying to figure this out, I played in the "demo" Projectorria, and now see something strange: I logged some small amounts of time on a child activity (66.5.2 test1), and when I check the Planning or Activity details, the real work on this activity is different! (see screenshots Activity, Planning, RWA).
These tests are done on the "MyOwnTestProject" of the demo site.
-> Any idea what could cause this ?

Just becaus RWA (Real Work allocation) is in hours, others are in days.


 
Posted : 09 Oct 2013 18H59
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 

1) I don't see "Parent_real_work_problem.jpg" attached 🙁

Sorry... here it is.

I am suspecting some corruption in the database maybe (probably not linked to the tool itself), but would like to understand how the code works to try to figure out what might have happened..
Extra note: we incidentally deleted the "Release notes P1" activity, and then the parent "Release 1.3.2" was recalculated to the correct value (see "Parent_real_work_OK").

2) Just becaus RWA (Real Work allocation) is in hours, others are in days.

Of course !!! :pinch:


 
Posted : 10 Oct 2013 12H47
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Calculation is done is the PlanningElement class (/model/PlanningElement.php).
On save, the update is automatically displatched to parent, recurcively.

So just updating value of the lowest activity will fix the data. It is what oyu did by deleting the activity 😉


 
Posted : 10 Oct 2013 15H32
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 

Interesting, thanks !


 
Posted : 10 Oct 2013 15H39
Share:

Scroll to Top