Switch to .3 rate
This commit is contained in:
parent
2a3d0784e2
commit
c28b6a179c
|
|
@ -154,6 +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}
|
||||
# if shopping_cart.is_lesson?
|
||||
# applicable_rate = lesson_rate
|
||||
# else
|
||||
|
|
@ -161,7 +162,7 @@ class JamRuby::AffiliatePartner < ActiveRecord::Base
|
|||
# end
|
||||
#{fee_in_cents: (product_info[:price] * 100 * real_quantity * applicable_rate.to_f).round}
|
||||
|
||||
{ fee_in_cents: (real_quantity * jamtrack_share_in_cents.to_f).round}
|
||||
# { fee_in_cents: (real_quantity * jamtrack_share_in_cents.to_f).round}
|
||||
else
|
||||
false
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in New Issue