Sha256: 14b978341befd1446cc270ef4fe571562d63e09a2bed47a55639a7bd57ce5842

Contents?: true

Size: 373 Bytes

Versions: 3

Compression:

Stored size: 373 Bytes

Contents

module EducodeSales
  class SalePlan < ApplicationRecord
    include ::Deletable
    belongs_to :business
    belongs_to :staff
    validates :business_id, presence: true

    # validates :month, presence: true

    CLAZZ_NAME = {'商机目标' => 7, '中标目标' => 18, '签单目标' => 1, '回款目标' => 2}

    default_scope  -> {where(deleted_at: nil)}
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
educode_sales-0.9.70 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.69 app/models/educode_sales/sale_plan.rb
educode_sales-0.9.68 app/models/educode_sales/sale_plan.rb