sort ordergroups in order screen and pdfs

This commit is contained in:
wvengen 2013-09-17 00:25:38 +02:00
parent 8ca95f396f
commit b11706f30a
6 changed files with 7 additions and 5 deletions

View file

@ -14,7 +14,7 @@ class OrderByArticles < OrderPdf
@order.order_articles.ordered.each do |order_article|
rows = []
dimrows = []
for goa in order_article.group_order_articles
for goa in order_article.group_order_articles.ordered
rows << [goa.group_order.ordergroup.name,
"#{goa.quantity} + #{goa.tolerance}",
goa.result,