Fix fee in cents
This commit is contained in:
parent
e6046f74b6
commit
2cc56f7ad7
|
|
@ -154,7 +154,7 @@ class JamRuby::AffiliatePartner < ActiveRecord::Base
|
|||
# subtract the total quantity from the freebie quantity, to see how much we should attribute to them
|
||||
real_quantity = product_info[:quantity].to_i - product_info[:marked_for_redeem].to_i
|
||||
|
||||
{fee_in_cents: (rate * product_info[:real_price]).round}
|
||||
{fee_in_cents: (product_info[:real_price] * 100 * rate).round}
|
||||
# if shopping_cart.is_lesson?
|
||||
# applicable_rate = lesson_rate
|
||||
# else
|
||||
|
|
|
|||
Loading…
Reference in New Issue