Since there are StockArticles for each supplier, the StockArticles has

to be excluded in normal articles-view.
This commit is contained in:
Benjamin Meichsner 2009-02-07 15:19:07 +01:00
parent 24b66ee8d4
commit 4d796b8e73
3 changed files with 5 additions and 4 deletions

View file

@ -21,7 +21,7 @@
%tbody
- for supplier in @suppliers
%tr{:class => cycle('even','odd', :name => 'suppliers')}
%td= link_to "<b>#{h(supplier.name)}</b> (#{supplier.articles.count})", supplier_articles_path(supplier)
%td= link_to "<b>#{h(supplier.name)}</b> (#{supplier.articles.not_in_stock.count})", supplier_articles_path(supplier)
%td=h supplier.phone
%td=h supplier.customer_number
%td= link_to "Anzeigen", supplier