Sha256: a511b019b861905a265c60762e3aebff25854b00d4f0166146e76e8e05d1fc30

Contents?: true

Size: 299 Bytes

Versions: 5

Compression:

Stored size: 299 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

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