mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Sort by id not doc_number
This fixes the bug where documents were displayed out of order
This commit is contained in:
1 parent
9b69d3f728
commit
9ac1261ed0
2 files changed
+2
-2
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<% if @customer.present? %>
|
||||
|
||||
<% @customer.invoices.order(doc_number: :desc).each do |invoice| %>
|
||||
<% @customer.invoices.order(id: :desc).each do |invoice| %>
|
||||
<div class="row">
|
||||
<b><%= link_to "##{invoice.doc_number}", invoice_path(invoice), target: :_blank %></b> <%= invoice.txn_date %>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user