Forum

[SOLVED] 8.1.8 Issu...
 
Notifications
Retirer tout

[SOLVED] 8.1.8 Issue in budget calculation

4 Posts
2 Utilisateurs
0 Reactions
2,104 Vu
Fanch
(@fsouliers)
Posts: 86
Active Member
Début du sujet
 
[#6302]

Hello,

it seems there is a bug in the budget calculation : when a project expense is marked as done, it is no longer taken into account in the budget calculation (its amount is ignored). This should occur only with canceled expenses.

As far as I remember, the behavior was correct in 8.0.6


 
Posté : 17 Oct PM 19:1010
(@babynus)
Posts: 14952
Membre Admin
 

Issue recorded as Ticket #4256


 
Posté : 17 Oct PM 19:1010
(@babynus)
Posts: 14952
Membre Admin
 

Issue fixed fix is to replace line 441 in model/BudgetMain.php from

      $expList=($this->id)?$exp->getSqlElementsFromCriteria(array('idBudgetItem'=>$this->id,'idle'=>'0')):array();

to

      $expList=($this->id)?$exp->getSqlElementsFromCriteria(array('idBudgetItem'=>$this->id,'cancelled'=>'0')):array();

 
Posté : 17 Oct PM 19:1010
Fanch
(@fsouliers)
Posts: 86
Active Member
Début du sujet
 

ok, it works, many thanks !


 
Posté : 18 Oct PM 12:1010
Share:
Retour en haut