Select All Invoices For Bulk PDF

This commit is contained in:
2026-01-20 20:49:03 -05:00
parent 0647b7708f
commit f74f3ad72e
3 changed files with 21 additions and 25 deletions

View File

@@ -3,13 +3,15 @@
<%= form_with(url: invoice_path, method: :get) do |form| %>
<div class="form-check">
<%= check_box_tag "select_all", "1", false, id: "select-all-batches" %>
<%= label_tag "select-all-batches", "Select All Items" %>
<%= check_box_tag "select-all-invoices", "1", false, id: "select-all-invoices" %>
<%= label_tag "select-all-invoices", "Select All Invioces" %>
</div>
<hr>
<% @customer.invoices.order(id: :desc).each do |invoice| %>
<div class="row">
<%= check_box_tag "item_ids[]", invoice.id, false,data: { checkbox_select_all_target: "checkbox", class: "item-checkbox" } %>
<%= check_box_tag "invoice_ids[]", invoice.id, false, class: "invoice-checkbox" %>
<b><%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %></b> <%= invoice.txn_date %>
</div>
<% end %>