app/views/educode_sales/projects/index.json.jbuilder in educode_sales-1.10.71 vs app/views/educode_sales/projects/index.json.jbuilder in educode_sales-1.10.72
- old
+ new
@@ -35,10 +35,10 @@
json.divide_rate d.divide_rate
json.divide_money d.divide_amount.to_f.round(2)
json.budget_amount d.budget_amount.to_f.round(2) #d.follow_ups.where(stage_id: @budget_stage_ids).order("created_at desc").first&.total_amount&.round(2) || 0
json.area d.department&.school&.province
if d.department&.school
- json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).join("、")
+ json.property d.department.school.school_tags.where(for_missions: true).pluck(:name).uniq.join("、")
else
json.property ''
end
json.sale_way d.last_follow_up&.place&.name.present? ? '渠道' : '直销'
json.year d.last_follow_up&.year.to_s
\ No newline at end of file