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

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]