Skip to content

Commit 65993d6

Browse files
committed
Se ajustan compradores a filtros de materiales
1 parent 9587c1d commit 65993d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/prices/_table.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</td>
1818
<% end %>
1919
</tr>
20-
<% buyers = Buyer.includes(:prices).where(buyer_id: c.id).where.not('prices.id': nil).each do |b| %>
20+
<% buyers = Buyer.includes(:prices).where(buyer_id: c.id, 'prices.material_id': @materials).each do |b| %>
2121
<tr>
2222
<td class="name"><%= link_to b.name, buyer_path(b.id), target: '_blank' %></td>
2323
<% @materials.each do |m| %>

0 commit comments

Comments
 (0)