Project

General

Profile

Defect #35726 » timelog_helper.patch

salman mp, 2021-08-09 18:25

View differences:

app/helpers/timelog_helper.rb
report.periods.each do |period|
sum = sum_hours(select_hours(report.hours, report.columns, period.to_s))
total += sum
row << (sum > 0 ? sum : '')
row << (sum > 0 ? format_hours(sum) : '')
end
row << total
row << format_hours(total)
csv << row
end
end
app/helpers/timelog_helper.rb → app/helpers/timelog_helper.rb (date 1628525671015)
periods.each do |period|
sum = sum_hours(select_hours(hours_for_value, columns, period.to_s))
total += sum
row << (sum > 0 ? sum : '')
row << (sum > 0 ? format_hours(sum) : '')
end
row << total
row << format_hours(total)
csv << row
if criteria.length > level + 1
report_criteria_to_csv(csv, available_criteria, columns, criteria, periods, hours_for_value, level + 1)
(1-1/2)