mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Do not include shipping method in the summary row
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