Skip to content

Commit

Permalink
Merge pull request #4361 from tvdeyen/v3.0-fix-refund-form-again
Browse files Browse the repository at this point in the history
[v3.0] Fix refund form (again)
  • Loading branch information
tvdeyen authored Apr 26, 2022
2 parents 2afc2ec + 65f1431 commit 69b5de2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions backend/app/views/spree/admin/refunds/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
<div class="col-3">
<div class="field">
<label><%= t('spree.payment_amount') %></label><br>
<%= number_to_currency @refund.payment.amount,
unit: Spree::Config.available_currencies.find { |c| c.iso_code == @refund.currency }&.symbol %>
<%= Spree::Money.new(@refund.payment.amount) %>
</div>
</div>
<div class="col-3">
<div class="field">
<label><%= t('spree.credit_allowed') %></label><br/>
<<%= number_to_currency @refund.payment.credit_allowed,
unit: Spree::Config.available_currencies.find { |c| c.iso_code == @refund.currency }&.symbol %>
<%= Spree::Money.new(@refund.payment.credit_allowed) %>
</div>
</div>
<div class="col-3">
Expand Down

0 comments on commit 69b5de2

Please sign in to comment.