diff --git a/decidim-budgets/app/commands/decidim/budgets/add_line_item.rb b/decidim-budgets/app/commands/decidim/budgets/add_line_item.rb index 551734bf102f2..388fc87a78f8f 100644 --- a/decidim-budgets/app/commands/decidim/budgets/add_line_item.rb +++ b/decidim-budgets/app/commands/decidim/budgets/add_line_item.rb @@ -45,7 +45,7 @@ def add_line_item end def exceeds_budget? - order.allocation_for(project) + order.total > project.budget.total_budget + order.allocation_for(project) + order.total > order.available_allocation end def voting_not_enabled?