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.

Cost Evaluation in ...
 
Notifications
Clear all

Cost Evaluation in Save Assignment

2 Posts
2 Users
0 Reactions
2,154 Views
(@antonio-grr)
Posts: 84
Active Member
Topic starter
 
[#3919]

Hi.
In saveAssignment.php I see

foreach ($wkList as $wk) {
$wk->dailyCost=$cost;
$wk->dailyCost=$cost*$wk->work;
$wk->save();
}

Maybe

foreach ($wkList as $wk) {
$wk->dailyCost=$cost;
$wk->cost=$cost*$wk->work;
$wk->save();
}

Best regards.


 
Posted : 13 Dec 2016 11H54
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

You're right 😉

Fortunately this issue occurs only in very specific use case : change assignment which changes daily cost from zero to non zero value.

Code fixed, will be included in next patch/version.


 
Posted : 13 Dec 2016 12H36
Share:

Scroll to Top