From 578002501b3cba3984ec7e7028df5b067fbf0d29 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Fri, 3 Apr 2009 18:01:19 +0200 Subject: [PATCH] Hide ordergroups with result = 0. --- app/views/finance/balancing/_group_order_articles.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/finance/balancing/_group_order_articles.html.haml b/app/views/finance/balancing/_group_order_articles.html.haml index c9441fec..a800d393 100644 --- a/app/views/finance/balancing/_group_order_articles.html.haml +++ b/app/views/finance/balancing/_group_order_articles.html.haml @@ -9,7 +9,7 @@ %td{:colspan => "3",:style => "width:14em"} = remote_link_to '[Gruppe hinzufügen]', :url => {:action => "new_group_order_article", :id => order_article} %tbody - - for group_order_article in order_article.group_order_articles.all(:include => [:group_order]) + - for group_order_article in order_article.group_order_articles.ordered.all(:include => [:group_order]) %tr{:class => cycle('even', 'odd', :name => 'results')}[group_order_article] %td %td{:style=>"width:50%"}