Change to use total rather than display_total (which returns a Spree::Money object)

This commit is contained in:
Steve Pettitt
2016-05-04 07:58:23 +01:00
parent bed7ec5953
commit 7f1fc56f78

View File

@@ -46,12 +46,11 @@ class ProducerMailer < Spree::BaseMailer
else
lis[li.variant] = li
end
lis
end
end
def total_from_line_items(aggregated_line_items)
Spree::Money.new(aggregated_line_items.values.map(&:display_amount).reduce(:+)).to_s
Spree::Money.new(aggregated_line_items.values.map(&:total).reduce(:+)).to_s
end
end