-
<%=t(:label_customer)%>:
+ <%=t(:field_customer)%>:
<%= render :partial => 'customers/details', locals: {customer: @customer} %>
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 %>