Sha256: 42e224f98b52a9e7aaf4616addd181790a401bc4351a594d80f10f3d53d2add7

Contents?: true

Size: 457 Bytes

Versions: 28

Compression:

Stored size: 457 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.total_count

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
educode_sales-0.4.4 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.4.3 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.4.2 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.4.1 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.4.0 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.9 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.8 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.7 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.6 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.5 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.4 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.3 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.2 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.1 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.3.0 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.2.9 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.2.8 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.2.7 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.2.6 app/views/educode_sales/sale_reports/index.json.jbuilder
educode_sales-0.2.5 app/views/educode_sales/sale_reports/index.json.jbuilder