budget/app/models/credit_card_bill.rb

6 lines
111 B
Ruby
Raw Permalink Normal View History

2023-03-03 18:12:59 -05:00
class CreditCardBill < ApplicationRecord
def unpaid
amount - Expense.credit_card_monthly_total
end
end