Sha256: 1e87f6a217ac5a2d5368dedec51897ef53c36a61e73d2deb6822e0d600d8b982
Contents?: true
Size: 621 Bytes
Versions: 106
Compression:
Stored size: 621 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
106 entries across 106 versions & 1 rubygems