<%= render partial: 'shared/header', locals:{ links: [["在庫一覧", '#']]}%>
<% if false %> <% @type_id1.each do |type1| %> <%= link_to type1[0], goods_show_month_path(type1[1], -1, -1, @start, @end, @type,@sort), class: "w8-button grey small3" if @id1 == type1[1] %> <%= link_to type1[0], goods_show_month_path(type1[1], -1, -1, @start, @end, @type,@sort), class: "w8-button l-blue small3" if @id1 != type1[1] %> <% end %> <% end %> <% @type_id2.each do |type2| %> <%= link_to type2[0], goods_show_month_path(@id1, type2[1], -1, @start, @end, @type,@sort), class: "w8-button grey small3" if @id2 == type2[1] %> <%= link_to type2[0], goods_show_month_path(@id1, type2[1], -1, @start, @end, @type,@sort), class: "w8-button l-blue small3" if @id2 != type2[1] %> <% end %>


<% @type_id3.each do |type3| %> <%= link_to type3[0], goods_show_month_path(@id1, @id2, type3[1], @start, @end, @type,@sort), class: "w8-button grey small3" if @id3 == type3[1] %> <%= link_to type3[0], goods_show_month_path(@id1, @id2, type3[1], @start, @end, @type,@sort), class: "w8-button l-blue small3" if @id3 != type3[1] %> <% end %>







<%= form_for(@good) do |f| %> <%= hidden_field_tag :id1, @id1 %> <%= hidden_field_tag :id2, @id2 %> <%= hidden_field_tag :id3, @id3 %> <%= hidden_field_tag :type, @type %>

開始

<%= date_field_tag 'start', @start %>

終了

<%= date_field_tag 'end', @end %>
<%= f.submit "日付指定", class: "w8-button l-blue small" %>
<% end %>

























<%= @category.name %>一覧




<%= link_to '物品名', goods_show_month_path(@id1, @id2, @id3, @start, @end, @type, @sort1) %>

<%= link_to '型式', goods_show_month_path(@id1, @id2, @id3, @start, @end, @type, @sort2) %>

<% if @type == -1 || @type == 1 %>

<%= link_to '入庫数', goods_show_month_path(@id1, @id2, @id3, @start, @end, @type, @sort3) %>

<% end %> <% if @type == -1 || @type == 2 %>

<%= link_to '出庫数', goods_show_month_path(@id1, @id2, @id3, @start, @end, @type, @sort4) %>

<% end %>

<%= link_to '最終更新日', goods_show_month_path(@id1, @id2, @id3, @start, @end, @type, @sort5) %>

メモ

<% @list.each do |list| %> <% name = list[0] %> <% memo = list[1] %> <% memo1 = list[2] %> <% push = list[3] %> <% pull = list[4] %> <% update = list[5] %> <% good = list[6] %>

<%= name %>

<%= memo1 %>

<% if @type == -1 || @type == 1 %>

<%= push %>

<% end %> <% if @type == -1 || @type == 2 %>

<%= pull %>

<% end %>

<%= update %>

<%= memo %>

<%= link_to '編集', edit_good_path(good), class: "w8-button l-blue del" %>
<% end %>





<% if false %>
<%= link_to "項目追加", goods_new_path(@id), class: "w8-button l-blue small" %>
<% end %>