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.

[SOLVED] import ass...
 
Notifications
Clear all

[SOLVED] import assignments with real work ==> the real work of activity not updated

8 Posts
2 Users
0 Reactions
8,073 Views
(@yelazhari)
Posts: 35
Active Member
Topic starter
 
[#2513]

Hi ,

I have a question about importing assignements :
When assignments are imported with a real work filled,the real work of the related activity is not updated, is that normal ? In my opignon , once the assignment is imported with real work , the real work of the actifity must be also recalculated and updated

Thanks.


 
Posted : 14 Aug 2015 15H47
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

When assignments are imported with a real work filled,the real work of the related activity is not updated, is that normal ?

Yes, it is normal.
The real work is calculated from work in db, so each time you add assignment, without work item, real work is automatically updated to zero.

In my opignon , once the assignment is imported with real work , the real work of the actifity must be also recalculated and updated

Same thing as real work for activity is sum of real work for all assignments on the activity.


 
Posted : 14 Aug 2015 15H57
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

When assignments are imported with a real work filled,the real work of the related activity is not updated, is that normal ?

Yes, it is normal.
The real work is calculated from work in db, so each time you add assignment, without work item, real work is automatically updated to zero.

In my opignon , once the assignment is imported with real work , the real work of the actifity must be also recalculated and updated

Same thing as real work for activity is sum of real work for all assignments on the activity.


 
Posted : 14 Aug 2015 15H57
(@yelazhari)
Posts: 35
Active Member
Topic starter
 

So , you confirm if assignments are imported with a real work value ,the real work of the related activity will be also updated ?


 
Posted : 14 Aug 2015 16H05
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

So , you confirm if assignments are imported with a real work value ,the real work of the related activity will be also updated ?

No, because real work of assignment will previously be set to zero, as there is no real work input (object work) on this assignement in the db.


 
Posted : 14 Aug 2015 16H24
(@yelazhari)
Posts: 35
Active Member
Topic starter
 

may be I did not understand well your explanation "as there is no real work input (object work) on this assignement in the db" , but looking at the assignment table I found that there's indeed a real work field in DB ( see the screen attached)?

could you explain me more?

Thanks a lot for your support and help


 
Posted : 15 Aug 2015 0H03
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

Yes, there is realWork in assignement, but it is always automatically updated as sum of work for each work.
It could be interpreted as :
assignment.realWork=select sum(work) from work where work.idAssignment=assignment.id
(it is not done this way but result is equivalent)


 
Posted : 15 Aug 2015 2H28
(@yelazhari)
Posts: 35
Active Member
Topic starter
 

After test , I confirm.
Thanks.


 
Posted : 15 Aug 2015 17H13
Share:

Scroll to Top