Reverts #9268 for supplier totals

This commit is contained in:
filipefurtad0
2022-06-15 13:50:22 +01:00
parent df6e107dd3
commit 0a70e091cd

View File

@@ -35,6 +35,12 @@ module Reporting
def line_item_includes
[{ variant: [{ option_values: :option_type }, { product: :supplier }] }]
end
def query_result
report_line_items.list(line_item_includes).group_by { |e|
[e.variant_id, e.price]
}.values
end
end
end
end