app/models/educode_sales/business.rb in educode_sales-0.9.23 vs app/models/educode_sales/business.rb in educode_sales-0.9.24
- old
+ new
@@ -23,7 +23,24 @@
d.soft_destroy(user_id)
end
self.follow_ups.update_all(deleted_at: Time.now)
EducodeSales::Recycle.create(source: self, deleter_id: user_id)
end
+
+
+ def self.include_types(type)
+ {
+ '1' => %w[a_class b_class c_class d_class e_class o_class],
+ 'a' => ['a_class'],
+ 'b' => ['b_class'],
+ }[type]
+ end
+
+ def self.include_steps(type)
+ {
+ '已中标' => ['已中标','已签单','已验收','回款中', '服务中','已结束'],
+ '已签单' => ['已签单','已验收','回款中', '服务中','已结束'],
+ '应收款' => ['已中标','已签单','已验收','回款中', '服务中','已结束']
+ }[type]
+ end
end
end