Skip to content

Commit

Permalink
with total
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 3, 2025
1 parent 3c3ea50 commit 56ea728
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/trade/admin/payments/_show/_index_table.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<table class="table is-striped is-boxed is-fullwidth">
<table class="table is-boxed is-fullwidth">
<thead>
<tr>
<%= render 'trade/admin/payment_orders/_base/index_thead' %>
Expand Down
5 changes: 5 additions & 0 deletions app/views/trade/admin/payments/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@

<%= render layout: 'index_table' do %>
<%= render partial: 'trade/admin/payment_orders/_base/index_tbody', layout: 'trade/admin/payment_orders/_base/index_tr', collection: @payment.payment_orders, as: :model %>
<tr>
<td colspan="2" class="text-right text-grey">合计:</td>
<td><%= @payment.orders_amount.to_money.format.html_safe %></td>
<td><%= @payment.total_amount.to_money.format.html_safe %></td>
</tr>
<% end %>

<%= render layout: 'refund_table' do %>
Expand Down

0 comments on commit 56ea728

Please sign in to comment.