Fix fee in cents

This commit is contained in:
Seth Call 2025-03-10 23:24:59 -05:00
parent e6046f74b6
commit 2cc56f7ad7
1 changed files with 1 additions and 1 deletions

View File

@ -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