<%= render partial: 'shared/header', locals: { links: [["在庫一覧", goods_show_path(@id1, @id2, @id3,1)], ["在庫情報", '#']]} %>

<%= @good.name.truncate(30) %> 価格設定


<%= form_for(@good) do |f| %> <% if @good.errors.any? %>

<%= pluralize(@good.errors.count, "error") %> prohibited this customer from being saved:

<% end %>


カテゴリ

<%= f.select :good_type_id, @type_id, selected: @good.good_type_id %>

項目名

<%= f.text_field :name %>

型式

<%= f.text_field :memo1 %>

個数

<%= @good.number %>

最終更新日

<%= @good.last_update %>

詳細

<%= f.text_field :memo %>


















更新日

入荷数

出荷数

仕入価格

請求価格

顧客

詳細

<% @histories.each do |history| %> <%= f.fields_for :good_histories, history do |history_field| %>
<%= history_field.date_field :date %>
<%= history_field.text_field :number_in %>
<%= history_field.text_field :number_out %>
<%= history_field.text_field :memo2 %>
<%= history_field.text_field :memo3 %>
<% tmp = "history" + history.id.to_s %> <% selected = history.memo4.to_i %>
<%= history_field.select :memo4, @customer,{include_blank: true, selected: selected}, class: "mySelect2", style: "width: 90%" %>
<%= history_field.text_field :memo %>
<%= link_to '削除', history, method: :delete, data: { confirm: "本当に削除しますか?"}, class: "w8-button l-blue del" %>
<% end %> <% end %>
<%= f.submit "更新", class: "w8-button l-blue small"%>
<% end %>