Sha256: 4a6f378108433e4d0430b742f2b44336d1f81eaa3c6c9f2002a2d46aaf0bf7aa

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

json.data do
  json.array! @sale_reports do |d|
    json.id d.id
    json.staff d.staff.user.real_name
    json.client d.client
    json.amount d.amount
    json.content d.content.truncate(40)
    json.finish_rate "#{d.finish_rate}%"
    json.level1_score d.level1_score || 0
    json.level2_score d.level2_score || 0
    json.level3_score d.level3_score || 0
    json.updated_at d.updated_at.to_s
  end
end

json.code 0
json.count @sale_reports.count

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
educode_sales-0.1.4 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.1.3 app/views/educode_sales/sale_reports/index.json.jbuilder