From 3defd81ca6cf8e3b0a00990508f0eec16afc0979 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 7 Jun 2022 10:37:06 +0200 Subject: [PATCH] Group by e.order.distributor_id on Orders & Fulfillment Reports --- lib/reporting/reports/orders_and_fulfillment/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/reporting/reports/orders_and_fulfillment/base.rb b/lib/reporting/reports/orders_and_fulfillment/base.rb index f31514b74d..887a39c5a1 100644 --- a/lib/reporting/reports/orders_and_fulfillment/base.rb +++ b/lib/reporting/reports/orders_and_fulfillment/base.rb @@ -23,7 +23,7 @@ module Reporting def query_result report_line_items.list(line_item_includes).group_by { |e| - [e.variant_id, e.price] + [e.variant_id, e.price, e.order.distributor_id] }.values end