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


<% if @id2 == 54 %>
<%= link_to 'アプラス登録 契約番号 0784 38 08', "http://aplus-web1.force.com/vendorlease/", class: "w8-button l-blue long" %>




<% end %>

契約情報一覧


<% amount = "月額" %> <% amount = "金額" if @id2==88 %>

<%= link_to '顧客名', goods_show_lease_path(@id1, @id2, @id3, @sort1) %>

<%= link_to '物品名', goods_show_lease_path(@id1, @id2, @id3, @sort2) %>

<%= link_to '途中解約日', goods_show_lease_path(@id1, @id2, @id3, @sort6) %>

<%= link_to '契約満了日', goods_show_lease_path(@id1, @id2, @id3, @sort3) %>

<%= link_to '契約開始日', goods_show_lease_path(@id1, @id2, @id3, @sort4) %>

<%= link_to amount, goods_show_lease_path(@id1, @id2, @id3, @sort5) %>

pdf

<% @goods.each do |good| %> <% name = good.name %> <% next if name.nil? %> <% memo = good.memo %> <% memo = "" if memo.nil? %> <% memo1 = good.memo1 %> <% memo1 = "" if memo1.nil? %> <% memo2 = good.memo2 %> <% memo2 = "" if memo2.nil? %> <% memo3 = good.memo3 %> <% memo3 = "" if memo3.nil? %> <% memo7 = good.memo7 %> <% memo7 = "" if memo7.nil? %> <% memo8 = good.memo8 %> <% memo8 = "" if memo8.nil? %> <% memo10 = good.memo10 %> <% memo10 = "" if memo10.nil? %> <% memo11 = good.memo11 %> <% memo11 = "" if memo11.nil? %> <% if good.memo4.nil? %> <% customer_name = "" %> <% else %> <% customer_name = Customer.find(good.memo4.to_i).name if good.memo4.to_i != 0 %> <% customer_name = "" if good.memo4.to_i == 0 %> <% end %>

<%= customer_name.truncate(28) %>

<%= name.truncate(28) %>

<%= memo11.truncate(20) %>

<%= memo1.truncate(20) %>

<%= memo2.truncate(20) %>

<%= memo3.truncate(20) %>

<%= link_to memo7, {action: 'goods_download', id: memo8}, target: "_blank", class: " memo10 " %>

<% if true %>
<%= link_to '編集', edit_lease_path(good, good.good_type_id), class: "w8-button l-blue del" %>
<% else %>
<%= link_to '詳細', good_path(good), class: "w8-button l-blue del" %>
<%= link_to '編集', '#', class: "w8-button l-blue del" %>
<%= link_to '削除', '#', class: "w8-button l-blue del" %>
<% end %>
<% end %>
<%= will_paginate @goods, previous_label: "前ページ", next_label: "次ページ" %>
<%= link_to '項目追加', edit_lease_path(-1, @id2), class: "w8-button l-blue small3" %>