diff --git a/lib/open_food_network/reports/line_items.rb b/lib/open_food_network/reports/line_items.rb index 93c5fba9de..e086fe5c2b 100644 --- a/lib/open_food_network/reports/line_items.rb +++ b/lib/open_food_network/reports/line_items.rb @@ -24,8 +24,8 @@ module OpenFoodNetwork editable_line_items = editable_line_items(line_items) - line_items.select{ |li| - !editable_line_items.include? li + line_items.reject{ |li| + editable_line_items.include? li }.each do |line_item| # TODO We should really be hiding customer code here too, but until we # have an actual association between order and customer, it's a bit tricky