Sha256: 229f0a2ba3d15588b01239a21825132c66781d9156e1ace3fc4a8110a47f3c08
Contents?: true
Size: 683 Bytes
Versions: 15
Compression:
Stored size: 683 Bytes
Contents
total_amount = 0 json.data do json.array! @money_plan_records do |d| json.id d.id json.business_name d.business&.name json.date_at d.date_at.to_s(:date) json.amount d.amount json.business d.business&.name json.business_id d.business_id json.school d.business&.school&.name json.school_id d.business&.school_id json.staff d.staff.user.real_name json.number d.business&.number json.payer_name d.payer_name if d['claim_num'] > 0 json.state '已认领' elsif d.business&.name.nil? json.state '无对应合同' else json.state '待认领' end end end json.code 0 json.count @money_plan_records.total_count
Version data entries
15 entries across 15 versions & 1 rubygems