Sha256: 82b1a6610ddd44c4b7cf9156470322fff79174cc92eb1462035a0e4416339c66

Contents?: true

Size: 576 Bytes

Versions: 1

Compression:

Stored size: 576 Bytes

Contents

json.data do
  json.array! @data do |d|
    json.id d.id
    json.description d.description
    json.name d.activity.name
    json.info_id d.info_id
    json.clazz_id d.activity.clazz_id
    json.staff d.activity.sales&.user&.real_name || d.activity.staff&.user&.real_name
    json.staff_manage d.activity.manages.map { |d| d.activity.staff.user.real_name}.uniq.join("、")
    json.follow_up d.staff.user.real_name
    json.created_at d.created_at.to_s
    json.state_id d.activity.state_id
    json.advise d.advise || ''
 
  end
end

json.code 0
json.count @data.total_count

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
educode_sales-0.9.67 app/views/educode_sales/activities/follow_ups.json.jbuilder