The personal finance app for everyone (by everyone)
Ruby
address ds issues
Shibu Mfdadff1b237b
diff --git a/app/views/transfers/show.html.erb b/app/views/transfers/show.html.erbindex a91f775916..08a5659d60 100644--- a/app/views/transfers/show.html.erb+++ b/app/views/transfers/show.html.erb@@ -38,11 +38,19 @@<dd class="font-medium text-destructive privacy-sensitive"><%= format_money @transfer.outflow_transaction.entry.amount_money * -1 %></dd></dl></div>- <% if @transfer.has_fees? %>+ <% if @transfer.has_source_fee? %><dl class="flex items-center gap-2 justify-between">- <dt class="text-secondary"><%= t(".bank_charges") %></dt>+ <dt class="text-secondary"><%= t(".source_fee") %></dt><dd class="font-medium text-destructive privacy-sensitive">- -<%= format_money Money.new(@transfer.total_fee, @transfer.from_account.currency) %>+ -<%= format_money Money.new(@transfer.source_fee_amount, @transfer.from_account.currency) %>+ </dd>+ </dl>+ <% end %>+ <% if @transfer.has_destination_fee? %>+ <dl class="flex items-center gap-2 justify-between">+ <dt class="text-secondary"><%= t(".destination_fee") %></dt>+ <dd class="font-medium text-destructive privacy-sensitive">+ -<%= format_money Money.new(@transfer.destination_fee_amount, @transfer.to_account.currency) %></dd></dl><% end %>diff --git a/config/locales/views/transfers/en.yml b/config/locales/views/transfers/en.ymlindex 8205fa490f..4463f98e20 100644--- a/config/locales/views/transfers/en.yml+++ b/config/locales/views/transfers/en.yml@@ -47,6 +47,8 @@ en:date: Dateamount: Amountbank_charges: Bank Charges+ source_fee: Source fee+ destination_fee: Destination feecategory: Categoryuncategorized: Uncategorizedupdate: