Sha256: b9b7eb83e74cdab1710b544aa08dffaf88ddda75d618bcbab6ecd95bea3aecee

Contents?: true

Size: 258 Bytes

Versions: 6

Compression:

Stored size: 258 Bytes

Contents

# An affiliate campaign
#
# Carries an affiliate fee (and sales fee)
#
class AffiliateCampaign < SalesCampaign
  money_columns :affiliate_fee
  belongs_to :affiliate 

  ##
  # The sum cost of this campaign
  #
  def cost
    super + affiliate_fee
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
e9_crm-0.1.8 app/models/affiliate_campaign.rb
e9_crm-0.1.7 app/models/affiliate_campaign.rb
e9_crm-0.1.6 app/models/affiliate_campaign.rb
e9_crm-0.1.5 app/models/affiliate_campaign.rb
e9_crm-0.1.4 app/models/affiliate_campaign.rb
e9_crm-0.1.1 app/models/affiliate_campaign.rb