More rounding issue fixes

This commit is contained in:
Brian Quinn 2010-12-03 09:33:02 +00:00
parent 898b6d4bb3
commit 4b31bc2019
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ module Spree::PaypalExpress
opts[:callback_timeout] = 3
elsif stage == "payment"
#use real totals are we are paying via paypal (spree checkout almost complete)
opts[:subtotal] = ((order.item_total + order.credits.total)*100).to_i
opts[:subtotal] = ((order.item_total * 100) + (order.credits.total * 100)).to_i
opts[:tax] = (order.tax_total*100).to_i
opts[:shipping] = (order.ship_total*100).to_i