Move extra bills to credit cards
This commit is contained in:
parent
c14a408f9a
commit
0887a5f6b9
38 changed files with 242 additions and 251 deletions
|
@ -19,7 +19,7 @@ class Expense < ApplicationRecord
|
|||
Expense.all.map(&:monthly).sum.round(2)
|
||||
end
|
||||
|
||||
def self.autopaid_total
|
||||
Expense.where(autopaid: true).map(&:monthly).sum.round(2)
|
||||
def self.credit_card_monthly_total
|
||||
Expense.where(credit_card: true).map(&:monthly).sum.round(2)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue