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

@@ -27,12 +27,12 @@
<div class="splitcontent">
<div class="splitcontentleft">
<h4><%=t(:estimates)%>:</h4>
<%= render partial: 'estimates/list', locals: {customer: @customer} %>
<%= render partial: 'estimates/list', locals: {estimates: @customer.estimates} %>
</div>
<div class="splitcontentleft">
<h4><%=t(:label_invoices)%>:</h4>
<%= render partial: 'invoices/list', locals: {customer: @customer} %>
<%= render partial: 'invoices/list', locals: {invoices: @customer.invoices} %>
</div>
</div>