2013-12-31 11:41:14 +01:00
|
|
|
module OrderArticlesHelper
|
2012-07-27 18:03:46 +02:00
|
|
|
|
2014-02-24 11:37:06 +01:00
|
|
|
def article_label_with_unit(article)
|
|
|
|
pkg_info = pkg_helper(article, plain: true)
|
|
|
|
"#{article.name} (#{[article.unit, pkg_info].reject(&:blank?).join(' ')})"
|
2012-07-27 18:03:46 +02:00
|
|
|
end
|
2014-02-24 11:37:06 +01:00
|
|
|
|
2012-06-21 17:19:00 +02:00
|
|
|
end
|