<% @order.order_items.each do |order_item| %> <% order_item.order_serves.each do |order_serve| %> <% end %> <% order_item.order_promotes.each do |order_promote| %> <% end %> <% end %> <% @order.pure_order_serves.each do |order_serve| %> <% end %> <% @order.pure_order_promotes.each do |order_promote| %> <% end %>
商品 数量 Pure Price Serve Sum Promote Sum
<%= order_item.good.name %> <%= order_item.good&.price %> <%# link_to order_item.good&.name, controller: '/' + order_item.good_type.underscore.pluralize, action: 'show', id: order_item.good_id %> <%= order_item.number %> <%= link_to '订单流程', admin_order_item_path(order_item) %> <%= order_item.pure_price %> <%= order_item.serve_sum %> <%= order_item.promote_sum %> <%= order_item.amount %>
<%= order_serve.serve.name %> <%= order_serve.amount %>
<%= order_promote.promote.name %> <%= order_promote.amount %>
<%= order_serve.serve.name %> <%= order_serve.amount %>
<%= order_promote.promote.name %> <%= order_promote.amount %>
总价 <%= @order.amount %> <%= link_to new_admin_order_order_payment_path(@order.id), remote: true, class: 'ui icon green button' do %> <% end %>