mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 09:13:58 -05:00
25 lines
731 B
Plaintext
25 lines
731 B
Plaintext
<% if @customer.present? %>
|
|
|
|
<%= form_with(url: invoice_path, method: :get) do |form| %>
|
|
|
|
<div class="form-check">
|
|
<%= 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 "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 %>
|
|
|
|
<%= form.submit "Bulk PDF" %>
|
|
<% end %>
|
|
|
|
<% else %>
|
|
<p><%=t(:label_no_invoices)%>.</p>
|
|
<% end %>
|