Change Result of PriceSack Calculation from Integers to Floats

This commit is contained in:
blainebillings
2020-02-20 09:28:43 -05:00
committed by Luis Ramos
parent 4658a53aeb
commit 427dc54945

View File

@@ -17,9 +17,9 @@ module Spree
order_amount = line_items_for(object).map { |x| x.price * x.quantity }.sum
if order_amount < min
cost = preferred_normal_amount.to_i
cost = preferred_normal_amount.to_f
elsif order_amount >= min
cost = preferred_discount_amount.to_i
cost = preferred_discount_amount.to_f
end
cost