mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Do not group by order
This commit is contained in:
@@ -22,7 +22,9 @@ module Reporting
|
||||
end
|
||||
|
||||
def query_result
|
||||
report_line_items.list(line_item_includes).group_by { |e| [e.variant_id, e.price] }.values
|
||||
report_line_items.list(line_item_includes).group_by { |e|
|
||||
[e.variant_id, e.price, e.order_id]
|
||||
}.values
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user