Sha256: 8dc9d93f8e18151ec10c5844a582dd4966bf21f201afbde3fd39e3fd005ba1b7

Contents?: true

Size: 1.99 KB

Versions: 97

Compression:

Stored size: 1.99 KB

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.year @year
    json.assessment EducodeSales::AssessmentsSetting::CLAZZ[d.assessment]
    json.annual d.annual.to_f.round(2)
    json.annual_lower (d.annual.to_f * 0.8).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)

    json.cycle d.cycle
    json.total_score d.total_score
    json.unit_name d.unit_name

    json.first_quarter_score d.first_quarter_score.to_f.round(2)
    json.january_score d.january_score.to_f.round(2)
    json.february_score d.february_score.to_f.round(2)
    json.march_score d.march_score.to_f.round(2)
    json.second_quarter_score d.second_quarter_score.to_f.round(2)
    json.april_score d.april_score.to_f.round(2)
    json.may_score d.may_score.to_f.round(2)
    json.june_score d.june_score.to_f.round(2)
    json.third_quarter_score d.third_quarter_score.to_f.round(2)
    json.july_score d.july_score.to_f.round(2)
    json.august_score d.august_score.to_f.round(2)
    json.september_score d.september_score.to_f.round(2)
    json.fourth_quarter_score d.fourth_quarter_score.to_f.round(2)
    json.october_score d.october_score.to_f.round(2)
    json.november_score d.november_score.to_f.round(2)
    json.december_score d.december_score.to_f.round(2)
  end
end

json.code 0
json.count @assessments.total_count

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.73 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.72 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.71 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.70 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.59 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.58 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.49 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.48 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.46 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.41 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.37 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.36 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.35 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.34 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.33 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.31 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.30 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.29 app/views/educode_sales/assessments/index.json.jbuilder
educode_sales-1.10.28 app/views/educode_sales/assessments/index.json.jbuilder