mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
group line_items by [customer,variant] in bulk/coop/packing_sheets
This commit is contained in:
@@ -5,7 +5,9 @@ module Reporting
|
||||
module BulkCoop
|
||||
class PackingSheets < Base
|
||||
def query_result
|
||||
table_items.group_by(&:order).values
|
||||
table_items.group_by do |item|
|
||||
[item.order.customer, item.variant]
|
||||
end.values
|
||||
end
|
||||
|
||||
def columns
|
||||
|
||||
Reference in New Issue
Block a user