group line_items by [customer,variant] in bulk/coop/packing_sheets

This commit is contained in:
Mohamed ABDELLANI
2022-11-24 10:56:59 +01:00
parent abf8d44935
commit 845133d3f6

View File

@@ -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