diff --git a/lib/reporting/reports/orders_and_fulfillment/base.rb b/lib/reporting/reports/orders_and_fulfillment/base.rb index 703f5e12b9..72ca34a83d 100644 --- a/lib/reporting/reports/orders_and_fulfillment/base.rb +++ b/lib/reporting/reports/orders_and_fulfillment/base.rb @@ -22,7 +22,9 @@ module Reporting end def query_result - report_line_items.list(line_item_includes).group_by(&:variant_id).values + report_line_items.list(line_item_includes).group_by { |e| + [e.variant_id, e.price, e.order_id] + }.values end private