Fix for issue 1134 - 'Pack by supplier' report now groups by order rather than last name.

This commit is contained in:
Rhodri Karim
2016-09-21 17:59:27 +01:00
parent 0760d4cc1f
commit 8a1d34e711

View File

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