mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Merge pull request #9246 from jibees/9228-do-not-include-shipping-method-in-the-summary-row-for-Order-Cycle-Distributer-Totals-by-Supplier-report
Do not include shipping method in the summary row for the Order Cycle Distributer Totals by Supplier report
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user