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.

Error when calculat...
 
Notifications
Clear all

Error when calculate leftCost

3 Posts
2 Users
0 Reactions
4,709 Views
(@chris35)
Posts: 17
Active Member
Topic starter
 
[#403]

Hi Babynus,

I've find a bug when calculating leftCost on PlanningElement.
There is an inversion with "=+" characters. It must be "+=".

To solve the problem, in model/PlanningElement.php, line 395, in updateSynthesisObj() function, replace the following line:

$leftCost=+$pla->leftCost;

by

$leftCost+=$pla->leftCost;

Thanks


 
Posted : 08 Mar 2012 13H08
(@chris35)
Posts: 17
Active Member
Topic starter
 

I've searched if there are other errors like this one and I've found one:

In report/expenseCostTotalPlan.php, line 92, replace

$tab[$proj][$var][$date]=+$cost;

by

$tab[$proj][$var][$date]+=$cost;

 
Posted : 08 Mar 2012 13H16
babynus
(@babynus)
Posts: 14957
Main Contributor Admin
 

Many thanks for this bug identification and fix.

Your fix is included in next version (V2.1)


 
Posted : 08 Mar 2012 17H58
Share:

Scroll to Top