Fix group and matrix PDFs (fixes #648)

This commit is contained in:
Tom Carchrae 2019-04-03 09:58:27 -07:00 committed by wvengen
parent 366d92e421
commit 7050137c68
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ class OrderPdf < RenderPDF
group('groups.id').
offset(offset).
limit(limit).
pluck('groups.name', 'SUM(group_orders.price)', 'ordergroup_id')
pluck('groups.name', 'SUM(group_orders.price)', 'groups.id')
result.map do |item|
[item.first || stock_ordergroup_name] + item[1..-1]