From aedfcae03bc2c4adf80c61a5ca660dd8e0cd20df Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Wed, 12 Aug 2009 11:46:27 +0200 Subject: [PATCH] Added stock_article number to stockit view. Closes #33 --- app/views/stockit/index.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/stockit/index.html.haml b/app/views/stockit/index.html.haml index ec0b3811..c723082f 100644 --- a/app/views/stockit/index.html.haml +++ b/app/views/stockit/index.html.haml @@ -1,4 +1,4 @@ -- title "Lagerübersicht" +- title "Lagerübersicht: #{StockArticle.available.count} Artikel im Lager" %div{:style => "padding:0 0 0.5em 0.7em;margin-bottom:2em"} %span{:style => "float:left"} @@ -56,4 +56,7 @@ %p Aktueller Lagerwert: = number_to_currency StockArticle.stock_value + | + Artikelanzahl: + = StockArticle.available.count