diff --git a/app/views/estimates/_list.html.erb b/app/views/estimates/_list.html.erb index 334fd84..d078a69 100644 --- a/app/views/estimates/_list.html.erb +++ b/app/views/estimates/_list.html.erb @@ -1,6 +1,6 @@ <% if @customer.present? %> - <% @customer.estimates.order(doc_number: :desc).each do |estimate| %> + <% @customer.estimates.order(id: :desc).each do |estimate| %>
<%= link_to "##{estimate.doc_number}", estimate_path(estimate), target: :_blank %> <%= estimate.txn_date %>
diff --git a/app/views/invoices/_list.html.erb b/app/views/invoices/_list.html.erb index e6510c6..212eb8d 100644 --- a/app/views/invoices/_list.html.erb +++ b/app/views/invoices/_list.html.erb @@ -1,6 +1,6 @@ <% if @customer.present? %> - <% @customer.invoices.order(doc_number: :desc).each do |invoice| %> + <% @customer.invoices.order(id: :desc).each do |invoice| %>
<%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %> <%= invoice.txn_date %>