<%= render partial: 'shared/header', locals:{ links: [["月次請求", '#']]}%>
<% @yearlist.each do |list| %> <%= link_to list[2], receit_path(list[0], list[1], @sort), class: list[3] %> <% end %>


<% @monthlist.each do |list| %> <%= link_to list[2], receit_path(list[0], list[1], @sort), class: list[3] %> <% end %>






<%= @year %>年<%= @month %>月請求


<%= link_to '項目名', receit_path(@year, @month, @sort1) %>

<%= link_to '請求日', receit_path(@year, @month, @sort2) %>

<%= link_to '金額', receit_path(@year, @month, @sort3) %>

<%= link_to '受領済', receit_path(@year, @month, @sort5) %>

<%= link_to '請求先', receit_path(@year, @month, @sort4) %>

メモ

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? %> <% memo4 = good.memo4 %> <% memo4 = "" if memo4.nil? %> <% memo5 = good.memo5 %> <% memo5 = "" if memo5.nil? %> <% memo5 = "未" if memo5 != "1" %> <% memo5 = "済" if memo5 == "1" %> <% memo7 = good.memo7 %> <% memo7 = "" if memo7.nil? %> <% memo8 = good.memo8 %> <% memo8 = "" if memo8.nil? %> <% memo10 = good.memo10 %> <% memo10 = "" if memo10.nil? %> <% date2 = good.date2 %> <% next if date2.nil? %>

<%= name.truncate(30) %>

<%= date2 %>

<%= memo4 %>円

<%= memo5 %>

<%= memo2.truncate(20) %>

<%= memo3.truncate(20) %>

<% if good.memo7 %>

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

<% end %>
<%= link_to '編集', edit_receit_path(good), class: "w8-button l-blue del" %>
<% end %>
<%= will_paginate @goods, previous_label: "前ページ", next_label: "次ページ" %>
<%= link_to '項目追加', edit_receit_path(@good.id), class: "w8-button l-blue small3" %>