This commit is contained in:
Julius 2013-02-25 10:13:44 +01:00
parent ccf0d010b4
commit 8f15cfb446
10 changed files with 30 additions and 104 deletions

View file

@ -1,18 +1,2 @@
# encoding: utf-8
module StockArticleSelectionsHelper
def article_deletion_classes(article)
className = "label label-success" # usual deletable case, maybe modified below
className = "label label-important" if article.quantity_available > 0
className = "label" if article.deleted?
className
end
def article_deletion_title(article)
myTitle = "Löschbar" # usual deletable case, maybe modified below
myTitle = "Nicht löschbar, da im Lager vorhanden" if article.quantity_available > 0
myTitle = "Bereits gelöscht" if article.deleted?
myTitle
end
end