From 4740c2b0dbc37e94744fb2dfb703367d3aa17bd5 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Tue, 18 Oct 2022 07:47:16 +0100 Subject: [PATCH] add sort by product name to order_cycle_supplier_totals_by_distributor report rules --- .../order_cycle_supplier_totals_by_distributor.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/reporting/reports/orders_and_fulfillment/order_cycle_supplier_totals_by_distributor.rb b/lib/reporting/reports/orders_and_fulfillment/order_cycle_supplier_totals_by_distributor.rb index 4152731bcf..728f01c35b 100644 --- a/lib/reporting/reports/orders_and_fulfillment/order_cycle_supplier_totals_by_distributor.rb +++ b/lib/reporting/reports/orders_and_fulfillment/order_cycle_supplier_totals_by_distributor.rb @@ -24,7 +24,8 @@ module Reporting header: true, }, { - group_by: proc { |line_items, _row| line_items.first.variant } + group_by: proc { |line_items, _row| line_items.first.variant }, + sort_by: proc { |variant| variant.product.name } }, { group_by: :hub,