Sha256: 03dbcd6703af3b0db839d84f01a682e1810442ba9d075cfd53ff4ae0fe0abe4b
Contents?: true
Size: 611 Bytes
Versions: 16
Compression:
Stored size: 611 Bytes
Contents
total_amount = 0 json.data do json.array! @money_plans do |d| json.id d.id json.date_at d.date_at.to_s(:date) json.amount d.amount total_amount += d.amount json.clazz d.clazz json.business d.follow_up.business.name json.business_id d.follow_up.business.id json.school School.find(d.follow_up.business.school_id).name json.school_id School.find(d.follow_up.business.school_id).id json.staff d.staff.user.real_name end end json.totalRow do json.amount total_amount.round(2).to_s + '/' + @total_amount.round(2).to_s end json.code 0 json.count @money_plans.total_count
Version data entries
16 entries across 16 versions & 1 rubygems