query_report 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,7 +90,7 @@ module QueryReport
90
90
  end
91
91
 
92
92
  def total
93
- @total ||= has_total? ? report.records.inject(0) { |sum, r| sum + report.content_from_element(r[humanize]).to_f } : nil
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]) if total.kind_of?(Hash)
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
 
@@ -1,3 +1,3 @@
1
1
  module QueryReport
2
- VERSION = "1.0.16"
2
+ VERSION = "1.0.17"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: query_report
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: