app/views/educode_sales/teachers/index.json.jbuilder in educode_sales-0.9.55 vs app/views/educode_sales/teachers/index.json.jbuilder in educode_sales-0.9.56
- old
+ new
@@ -18,12 +18,12 @@
json.courses_count d.courses_count
json.area d.department&.school&.province
json.actives d.actives
json.experience d['experience'] || 0
json.grade d['grade'] || 0
- json.mobile d.mobile
+ json.mobile d.user&.phone || ''
json.students d.students_count
- json.followup_at d.followup_at.to_s
+ json.followup_at d.follow_up&.created_at&.to_s
json.latest_time (d['latest_time'] ? DateTime.parse(Time.now.strftime("%Y-%m-%d")) - DateTime.parse(d['latest_time'].strftime("%Y-%m-%d")) : DateTime.parse(Time.now.strftime("%Y-%m-%d")) - DateTime.parse(d.created_at.strftime("%Y-%m-%d"))).to_i
json.staff_manage @staff_manages[d.department&.school&.province]&.join(",")
json.follow_person d.follow_up&.staff&.user&.real_name || ''
\ No newline at end of file