From ec338bca9cd17673c6db9a74a3265d6c9dc0ed4e Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Mon, 30 May 2022 11:14:29 +0200 Subject: [PATCH] Do not include shipping method in the summary row --- .../order_cycle_distributor_totals_by_supplier.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/reporting/reports/orders_and_fulfillment/order_cycle_distributor_totals_by_supplier.rb b/lib/reporting/reports/orders_and_fulfillment/order_cycle_distributor_totals_by_supplier.rb index ec6aae5af2..b4376c4c0a 100644 --- a/lib/reporting/reports/orders_and_fulfillment/order_cycle_distributor_totals_by_supplier.rb +++ b/lib/reporting/reports/orders_and_fulfillment/order_cycle_distributor_totals_by_supplier.rb @@ -26,8 +26,7 @@ module Reporting summary_row: proc do |_key, line_items, rows| { total_cost: rows.sum(&:total_cost), - total_shipping_cost: line_items.map(&:first).map(&:order).uniq.sum(&:ship_total), - shipping_method: rows.first.shipping_method + total_shipping_cost: line_items.map(&:first).map(&:order).uniq.sum(&:ship_total) } end }