From 5f6fb4af27504efbff3b1dfd903f7640fa18906c Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 22 Jan 2026 21:29:08 -0500 Subject: [PATCH 1/3] Only show select all when more than one invoice --- app/views/invoices/_list.html.erb | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/views/invoices/_list.html.erb b/app/views/invoices/_list.html.erb index 6b58174..775514c 100644 --- a/app/views/invoices/_list.html.erb +++ b/app/views/invoices/_list.html.erb @@ -2,12 +2,14 @@ <%= form_with(url: invoice_path, method: :get) do |form| %> -
- <%= check_box_tag "select-all-invoices", "1", false, id: "select-all-invoices" %> - <%= label_tag "select-all-invoices", t(:label_select_all) %> -
+ <% if @customer.invoices.count > 1 %> +
+ <%= check_box_tag "select-all-invoices", "1", false, id: "select-all-invoices" %> + <%= label_tag "select-all-invoices", t(:label_select_all) %> +
-
+
+ <% end %> <% @customer.invoices.order(id: :desc).each do |invoice| %>
@@ -16,7 +18,9 @@
<% end %> - <%= form.submit t(:button_bulk_pdf) %> + <% if @customer.invoices.count > 1 %> + <%= form.submit t(:button_bulk_pdf) %> + <% end %> <% end %> <% else %> From 4983cd661c366c235a3f932d46e0783728017b89 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 22 Jan 2026 21:49:33 -0500 Subject: [PATCH 2/3] Fixed missing locale --- app/views/customers/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/customers/show.html.erb b/app/views/customers/show.html.erb index 97bf7fa..41dc594 100644 --- a/app/views/customers/show.html.erb +++ b/app/views/customers/show.html.erb @@ -11,7 +11,7 @@
-

<%=t(:label_customer)%>:

+

<%=t(:field_customer)%>:

<%= render :partial => 'customers/details', locals: {customer: @customer} %>
From b096244454ef1636070d8fa781eff5498f89c915 Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 22 Jan 2026 21:50:17 -0500 Subject: [PATCH 3/3] Better display of customer note --- app/views/customers/_details.html.erb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/customers/_details.html.erb b/app/views/customers/_details.html.erb index 41a8738..5f76281 100644 --- a/app/views/customers/_details.html.erb +++ b/app/views/customers/_details.html.erb @@ -37,8 +37,11 @@ - <%=t(:field_notes)%> - +

<%=t(:field_notes)%> + + + +
           <%= customer.notes %>