Closed didlich closed 12 years ago
OK, now I have a patch which solve the problem
def remaining_hours
#print "Leaves-count:", self.leaves.count, "\n"
if self.leaves.count > 0
rHours=self.leaves.sum(:"estimated_hours - (estimated_hours * done_ratio / 100)").to_f || 0.0
else
rHours = self_and_descendants.sum("estimated_hours - (estimated_hours * done_ratio / 100)").to_f || 0.0
end
return rHours
end #remaining_hours
I dont't know ruby well and also the redmine framwork, maybe there is a better solution for this.
After the installation under redmine-1.3.2 I see in the Issues view that the remaining time calculation of ancestor task is wrong. Before the plugin installation the calculation was correct.
e.g.: two stories (Tasks) with each two tasks (Subtasks) after creation, without time logging
in the issue_patch.rb
the part
seems to be the problem
does sombody know how to fix this?