Added some more eager loading for balancing view.

This commit is contained in:
Benjamin Meichsner 2013-03-17 15:12:14 +01:00
parent 07581b7ecf
commit 9cc98b4662
2 changed files with 14 additions and 14 deletions

View file

@ -10,7 +10,7 @@ class Finance::BalancingController < Finance::BaseController
flash.now.alert = "Achtung, Bestellung wurde schon abgerechnet" if @order.closed?
@comments = @order.comments
@articles = @order.order_articles.ordered.includes(:order, :article_price,
@articles = @order.order_articles.ordered.includes(:article, :article_price,
group_order_articles: {group_order: :ordergroup})
sort_param = params['sort'] || 'name'