query_report 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/query_report/column.rb +1 -1
- data/lib/query_report/report_pdf.rb +3 -1
- data/lib/query_report/version.rb +1 -1
- metadata +1 -1
data/lib/query_report/column.rb
CHANGED
@@ -90,7 +90,7 @@ module QueryReport
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def total
|
93
|
-
@total ||= has_total? ? report.
|
93
|
+
@total ||= has_total? ? report.records_with_rowspan.inject(0) { |sum, r| sum + report.content_from_element(r[humanize]).to_f } : nil
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
@@ -71,12 +71,14 @@ module QueryReport
|
|
71
71
|
item_values
|
72
72
|
end
|
73
73
|
|
74
|
+
ap report.column_total_with_colspan
|
74
75
|
if report.has_total?
|
75
76
|
items = items << report.column_total_with_colspan.collect do |total|
|
76
|
-
total[:content] = fix_content(total[:content])
|
77
|
+
total[:content] = fix_content(total[:content])
|
77
78
|
total
|
78
79
|
end
|
79
80
|
end
|
81
|
+
ap items
|
80
82
|
items
|
81
83
|
end
|
82
84
|
|
data/lib/query_report/version.rb
CHANGED