OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Exclude ongoing timers from budget calculation
Oliver Günther87b397b1cae6
diff --git a/modules/budgets/app/views/budgets/_show.html.erb b/modules/budgets/app/views/budgets/_show.html.erbindex 48085eaf6e7..9e3ce77805e 100644--- a/modules/budgets/app/views/budgets/_show.html.erb+++ b/modules/budgets/app/views/budgets/_show.html.erb@@ -365,7 +365,12 @@ See COPYRIGHT and LICENSE files for more details.</tr></thead><tbody>- <% @budget.time_entries.visible(User.current).group_by(&:work_package).each do |work_package, time_entries|+ <% @budget+ .time_entries+ .not_ongoing+ .visible(User.current)+ .group_by(&:work_package)+ .each do |work_package, time_entries|entries = time_entries.inject(Hash.new) do |results, entry|result = results[entry.user.id.to_s]unless result