Fix group and matrix PDFs (fixes #648)
This commit is contained in:
parent
366d92e421
commit
7050137c68
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class OrderPdf < RenderPDF
|
||||||
group('groups.id').
|
group('groups.id').
|
||||||
offset(offset).
|
offset(offset).
|
||||||
limit(limit).
|
limit(limit).
|
||||||
pluck('groups.name', 'SUM(group_orders.price)', 'ordergroup_id')
|
pluck('groups.name', 'SUM(group_orders.price)', 'groups.id')
|
||||||
|
|
||||||
result.map do |item|
|
result.map do |item|
|
||||||
[item.first || stock_ordergroup_name] + item[1..-1]
|
[item.first || stock_ordergroup_name] + item[1..-1]
|
||||||
|
|
Loading…
Reference in a new issue