takes into account headings without balloted investments

This commit is contained in:
rgarcia
2017-05-03 17:49:29 +02:00
parent 2f6c1bc7bc
commit 8083f259c2
2 changed files with 14 additions and 1 deletions

View File

@@ -66,6 +66,7 @@ class Budget
end
def heading_for_group(group)
return nil unless has_lines_in_group?(group)
self.investments.where(group: group).first.heading
end