From 8b9cf5066e7a6e4c37572bd19b1e2f8bfc6990d3 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Sat, 31 Jan 2026 20:44:15 -0500 Subject: [PATCH] only show checkboxes if more then 1 invoices --- app/views/invoices/_list.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/invoices/_list.html.erb b/app/views/invoices/_list.html.erb index 168e431..b189c5e 100644 --- a/app/views/invoices/_list.html.erb +++ b/app/views/invoices/_list.html.erb @@ -12,7 +12,7 @@ <% invoices.sort.reverse.each do |invoice| %>
- <%= check_box_tag "invoice_ids[]", invoice.id, false, class: "invoice-checkbox" %> + <%= check_box_tag "invoice_ids[]", invoice.id, false, class: "invoice-checkbox" if invoices.count > 1 %> <%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %> <%= invoice.txn_date %>
<% end %>