mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Bug fixes for specialized account pages (#1275)
* Default for credit card fields * Save institution on new account forms * Fix property, vehicle, loan, credit card pages
This commit is contained in:
parent
b4d0fdbe0d
commit
a2ab217925
10 changed files with 26 additions and 13 deletions
|
@ -1,3 +1,15 @@
|
|||
class CreditCard < ApplicationRecord
|
||||
include Accountable
|
||||
|
||||
def available_credit_money
|
||||
available_credit ? Money.new(available_credit, account.currency) : nil
|
||||
end
|
||||
|
||||
def minimum_payment_money
|
||||
minimum_payment ? Money.new(minimum_payment, account.currency) : nil
|
||||
end
|
||||
|
||||
def annual_fee_money
|
||||
annual_fee ? Money.new(annual_fee, account.currency) : nil
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue