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:
parent
8f8b5b93a4
commit
4713539a09
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ class OrderByGroups < OrderPdf
|
||||||
|
|
||||||
def group_orders
|
def group_orders
|
||||||
order.group_orders.ordered.
|
order.group_orders.ordered.
|
||||||
joins(:ordergroup).order('groups.name').
|
includes(:ordergroup).order('groups.name').
|
||||||
preload(:group_order_articles => {:order_article => [:article, :article_price]})
|
preload(:group_order_articles => {:order_article => [:article, :article_price]})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue