Sha256: 08a6366b36e0a3645dad2c5eea16065263902d19f5adef419a2b1f6c248d079d

Contents?: true

Size: 911 Bytes

Versions: 30

Compression:

Stored size: 911 Bytes

Contents

json.data do
  json.array! @assessments do |d|
    json.id d.id
    json.username d.staff_id.present? ? d.staff.user.real_name : ""
    json.annual d.annual.to_f.round(2)
    json.first_quarter d.first_quarter.to_f.round(2)
    json.january d.january.to_f.round(2)
    json.february d.february.to_f.round(2)
    json.march d.march.to_f.round(2)
    json.second_quarter d.second_quarter.to_f.round(2)
    json.april d.april.to_f.round(2)
    json.may d.may.to_f.round(2)
    json.june d.june.to_f.round(2)
    json.third_quarter d.third_quarter.to_f.round(2)
    json.july d.july.to_f.round(2)
    json.august d.august.to_f.round(2)
    json.september d.september.to_f.round(2)
    json.fourth_quarter d.fourth_quarter.to_f.round(2)
    json.october d.october.to_f.round(2)
    json.november d.november.to_f.round(2)
    json.december d.december.to_f.round(2)
  end
end

json.code 0
json.count @assessments.count

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
educode_sales-0.9.6 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.9.5 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.9.4 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.9.3 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.9.2 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.9.1 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.8.9 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.8.7 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.8.6 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-0.8.5 app/views/educode_sales/assessments/index.json.jbuilder