desc sort issues, estimates, & invoices

This commit is contained in:
ricky committed 2022-02-21 06:22:13 -05:00
1 parent 925d4b8bcf
commit 3ae3107760
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<% if @customer.present? %>
<% @customer.qbo_invoices.each do |invoice| %>
<% @customer.qbo_invoices.order(doc_number: :desc).each do |invoice| %>
<div class="row">
<b><%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %></b> <%= invoice.txn_date %>
</div>