mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-14 23:47:48 +00:00
Fix for issue 1134 - 'Pack by supplier' report now groups by order rather than last name.
This commit is contained in:
@@ -83,8 +83,8 @@ module OpenFoodNetwork
|
||||
sort_by: proc { |product| product.name } },
|
||||
{ group_by: proc { |line_item| line_item.full_name },
|
||||
sort_by: proc { |full_name| full_name } },
|
||||
{ group_by: proc { |line_item| line_item.order.bill_address.lastname },
|
||||
sort_by: proc { |lastname| lastname } } ]
|
||||
{ group_by: proc { |line_item| line_item.order },
|
||||
sort_by: proc { |order| order.bill_address.lastname } } ]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user