Skip to content

Commit

Permalink
order payemtn
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Jan 27, 2025
1 parent 279f7a0 commit 4042514
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions app/views/trade/admin/orders/_show/_index_actions.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
<i class="fa-solid fa-print"></i>
<span class="ml-1"><%= t('.print.title') %></span>
<% end %>
<% if ['unpaid', 'part_paid'].include?(@order.payment_status) %>
<%= button_to({ controller: 'hand_payments', action: 'batch' }, params: { ids: @order.id }, class: 'button is-danger') do %>
<% if @order.can_pay? %>
<%= button_to({ action: 'payment_types' }, class: 'button is-danger') do %>
<i class="fa-solid fa-receipt"></i>
<span class="ml-1"><%= t('.hand_payments.batch.title') %></span>
<% end %>
<%= button_to({ controller: 'scan_payments', action: 'batch' }, params: { ids: @order.id }, class: 'button is-primary') do %>
<i class="fa-brands fa-weixin"></i>
<span class="ml-1"><%= t('.scan_payments.batch.title') %></span>
<span class="ml-1"><%= t('.payment_types.title') %></span>
<% end %>
<% end %>
</div>
Expand Down

0 comments on commit 4042514

Please sign in to comment.