Since there are StockArticles for each supplier, the StockArticles has
to be excluded in normal articles-view.
This commit is contained in:
parent
24b66ee8d4
commit
4d796b8e73
3 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue