1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 13:35:21 +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:
Zach Gollwitzer 2024-10-09 17:20:38 -04:00 committed by GitHub
parent b4d0fdbe0d
commit a2ab217925
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 26 additions and 13 deletions

View file

@ -2,15 +2,15 @@
<div class="grid grid-cols-3 gap-2">
<%= summary_card title: t(".amount_owed") do %>
<%= format_money(account.balance) %>
<%= format_money(account.balance_money) %>
<% end %>
<%= summary_card title: t(".available_credit") do %>
<%= format_money(account.credit_card.available_credit) || t(".unknown") %>
<%= format_money(account.credit_card.available_credit_money) || t(".unknown") %>
<% end %>
<%= summary_card title: t(".minimum_payment") do %>
<%= format_money(account.credit_card.minimum_payment) || t(".unknown") %>
<%= format_money(account.credit_card.minimum_payment_money) || Money.new(0, account.currency) %>
<% end %>
<%= summary_card title: t(".apr") do %>
@ -22,6 +22,6 @@
<% end %>
<%= summary_card title: t(".annual_fee") do %>
<%= format_money(account.credit_card.annual_fee) || t(".unknown") %>
<%= format_money(account.credit_card.annual_fee_money) || Money.new(0, account.currency) %>
<% end %>
</div>

View file

@ -6,7 +6,7 @@
<% end %>
<%= summary_card title: t(".remaining_principal") do %>
<%= format_money account.balance %>
<%= format_money account.balance_money %>
<% end %>
<%= summary_card title: t(".interest_rate") do %>

View file

@ -7,7 +7,7 @@
<div>
<h2 class="font-medium text-xl"><%= @account.name %></h2>
<% if @account.property? && @account.property.address %>
<% if @account.property? && @account.property.address&.line1.present? %>
<p class="text-gray-500"><%= @account.property.address %></p>
<% end %>
</div>