Sha256: 0613474c89ca748f337f8943d8c3bcd72cbb21305942199048481421ad0d1959

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

# An sales campaign
#
# Carries an affiliate fee
#
class SalesCampaign < Campaign
  money_columns :sales_fee

  belongs_to :sales_person, :class_name => 'Contact'
  validates :sales_person, :presence => true

  ##
  # The sum cost of this campaign
  #
  def cost
    sales_fee
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
e9_crm-0.1.10 app/models/sales_campaign.rb