Refactor estimates and invoices rendering to use local variables for the abilty for other plugins to display filtered lists

This commit is contained in:
2026-01-31 12:45:47 -05:00
parent f1bdf59697
commit 92460392b9
3 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
<% if @customer.present? %>
<% if estimates.empty? %>
<% @customer.estimates.order(id: :desc).each do |estimate| %>
<% estimates.sort.reverse.each do |estimate| %>
<div class="row">
<b><%= link_to "##{estimate.doc_number}", estimate_path(estimate), target: :_blank %></b> <%= estimate.txn_date %>
</div>