Sha256: f931a2a4a25a200ce417c845c8e031ac5c93bf5c189414e290de05f76a8e8175

Contents?: true

Size: 385 Bytes

Versions: 6

Compression:

Stored size: 385 Bytes

Contents

module EducodeSales
  class SalesTargetHistory < ApplicationRecord
    belongs_to :staff
    belongs_to :reviewer, class_name: 'Staff', optional: true
    belongs_to :school_tag

    enum clazz: { '中标': 18, '回款': 2, '商机': 7 }
    TARGET_CLAZZ_NAME = { 'bidder': '中标', 'money': '回款', 'business': '商机' }
    enum state: %w[待审核 已通过 已驳回]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/models/educode_sales/sales_target_history.rb
educode_sales-1.10.73 app/models/educode_sales/sales_target_history.rb
educode_sales-1.10.72 app/models/educode_sales/sales_target_history.rb
educode_sales-1.10.71 app/models/educode_sales/sales_target_history.rb
educode_sales-1.10.70 app/models/educode_sales/sales_target_history.rb
educode_sales-1.10.59 app/models/educode_sales/sales_target_history.rb