mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
add sort by product name to order_cycle_supplier_totals_by_distributor report rules
This commit is contained in:
@@ -24,7 +24,8 @@ module Reporting
|
||||
header: true,
|
||||
},
|
||||
{
|
||||
group_by: proc { |line_items, _row| line_items.first.variant }
|
||||
group_by: proc { |line_items, _row| line_items.first.variant },
|
||||
sort_by: proc { |variant| variant.product.name }
|
||||
},
|
||||
{
|
||||
group_by: :hub,
|
||||
|
||||
Reference in New Issue
Block a user