Pages#index

Find me in app/views/pages/index.html.erb

<% @orders.each.with_index(1) do |order,index| %> <% end %>
# 訂單 明細
<%= index %> <%= order.OrderNumber %> <% order.lines.each do |line| %> <% end %>
# 型號 單價 數量 折扣 小計
<%= line.LineNum %> <%= line.ProdId %> <%= line.UnitPrice %> <%= line.Quantity %> <%= line.Discount %>% <%= line.SubTotal %>