Fix order by groups document after 020b75c

Use a OUTER JOIN instead of a INNER JOIN to include also the stock order
which does not have an entry in the groups table.
This commit is contained in:
Patrick Gansterer 2017-06-28 13:53:38 +02:00
parent 8f8b5b93a4
commit 4713539a09
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class OrderByGroups < OrderPdf
def group_orders
order.group_orders.ordered.
joins(:ordergroup).order('groups.name').
includes(:ordergroup).order('groups.name').
preload(:group_order_articles => {:order_article => [:article, :article_price]})
end