budget/app/models/extra_bill.rb

5 lines
132 B
Ruby

class ExtraBill < ApplicationRecord
def adjusted_amount
deduct_autopaid? ? amount - Expense.autopaid_total : amount
end
end