Project

General

Profile

Change Position of element in pdf export [Ruby programming]

Added by Thomas Dettmann about 6 years ago

Hello everyone,

On the PDF Export there is the ability to add the totals to the pdf export.

As you can see here, i selectet the totals for "spend time" and "faktorierbare Zeit"

In the Pdf these totals will be displayed on the top of the table.

In the file issues_pdf_helper.rb this code generate the totals:

# totals
totals = query.totals.map {|column, total| "#{column.caption}: #{total}"}
if totals.present?
pdf.SetFontStyle('B',10)
pdf.RDMCell(table_width, 6, totals.join(" "), 0, 1, 'R')
end

My problem is, where must i place that code-bit, that the totals are shown under the table?

Greetings from Germany
Thomas