Order Budget headings by id when calculating heading stats
This commit is contained in:
@@ -129,7 +129,7 @@ class Budget
|
|||||||
def headings
|
def headings
|
||||||
stats_cache("headings") do
|
stats_cache("headings") do
|
||||||
groups = Hash.new(0)
|
groups = Hash.new(0)
|
||||||
@budget.headings.each do |heading|
|
@budget.headings.order("id ASC").each do |heading|
|
||||||
groups[heading.id] = Hash.new(0).merge(calculate_heading_totals(heading))
|
groups[heading.id] = Hash.new(0).merge(calculate_heading_totals(heading))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user