@@ -274,9 +274,17 module Redmine | |||||
274 |
|
274 | |||
275 | # title |
|
275 | # title | |
276 | pdf.SetFontStyle('B',11) |
|
276 | pdf.SetFontStyle('B',11) | |
277 |
pdf.RDMCell(190, |
|
277 | pdf.RDMCell(190, 8, title) | |
278 | pdf.ln |
|
278 | pdf.ln | |
279 |
|
279 | |||
|
280 | # totals | |||
|
281 | totals = query.totals.map {|column, total| "#{column.caption}: #{total}"} | |||
|
282 | if totals.present? | |||
|
283 | pdf.SetFontStyle('B',10) | |||
|
284 | pdf.RDMCell(table_width, 6, totals.join(" "), 0, 1, 'R') | |||
|
285 | end | |||
|
286 | ||||
|
287 | totals_by_group = query.totals_by_group | |||
280 | render_table_header(pdf, query, col_width, row_height, table_width) |
|
288 | render_table_header(pdf, query, col_width, row_height, table_width) | |
281 | previous_group = false |
|
289 | previous_group = false | |
282 | issue_list(issues) do |issue, level| |
|
290 | issue_list(issues) do |issue, level| | |
@@ -286,8 +294,13 module Redmine | |||||
286 | group_label = group.blank? ? 'None' : group.to_s.dup |
|
294 | group_label = group.blank? ? 'None' : group.to_s.dup | |
287 | group_label << " (#{query.issue_count_by_group[group]})" |
|
295 | group_label << " (#{query.issue_count_by_group[group]})" | |
288 | pdf.bookmark group_label, 0, -1 |
|
296 | pdf.bookmark group_label, 0, -1 | |
289 |
pdf.RDMCell(table_width, row_height * 2, group_label, |
|
297 | pdf.RDMCell(table_width, row_height * 2, group_label, 'LR', 1, 'L') | |
290 | pdf.SetFontStyle('',8) |
|
298 | pdf.SetFontStyle('',8) | |
|
299 | ||||
|
300 | totals = totals_by_group.map {|column, total| "#{column.caption}: #{total[group]}"}.join(" ") | |||
|
301 | if totals.present? | |||
|
302 | pdf.RDMCell(table_width, row_height, totals, 'LR', 1, 'L') | |||
|
303 | end | |||
291 | previous_group = group |
|
304 | previous_group = group | |
292 | end |
|
305 | end | |
293 |
|
306 |
General Comments 0
You need to be logged in to leave comments.
Login now