<% if @customer.present? %> <%= form_with(url: invoice_path, method: :get) do |form| %>
<%= check_box_tag "select_all", "1", false, id: "select-all-batches" %> <%= label_tag "select-all-batches", "Select All Items" %>
<% @customer.invoices.order(id: :desc).each do |invoice| %>
<%= check_box_tag "item_ids[]", invoice.id, false,data: { checkbox_select_all_target: "checkbox", class: "item-checkbox" } %> <%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %> <%= invoice.txn_date %>
<% end %> <%= form.submit "Bulk PDF" %> <% end %> <% else %>

<%=t(:label_no_invoices)%>.

<% end %>