Revert "Do not show non-group buy products on bulk coop reports"

This reverts commit f5c2386296.
This commit is contained in:
Rohan Mitchell
2015-07-24 12:40:50 +10:00
parent fffc35d9ed
commit f43eacb75d

View File

@@ -33,9 +33,7 @@ module OpenFoodNetwork
def table_items
orders = search.result
orders.
map { |o| o.line_items.managed_by(@user) }.flatten.
select { |li| li.product.group_buy? && li.product.group_buy_unit_size.andand > 0 }
orders.map { |o| o.line_items.managed_by(@user) }.flatten
end
def rules