Add color marking to items in group orders that have missing items

This commit is contained in:
Alexander Kirk 2015-05-03 20:05:39 +02:00
parent f049da7573
commit 75967bad22
5 changed files with 40 additions and 4 deletions

View file

@ -88,7 +88,7 @@
%i.icon-tag
%td{colspan: "9"}
- order_articles.each do |order_article|
%tr{class: "#{cycle('even', 'odd', name: 'articles')} order-article", valign: "top"}
%tr{class: "#{cycle('even', 'odd', name: 'articles')} order-article #{get_missing_units_css_class(@ordering_data[:order_articles][order_article.id][:missing_units])}", valign: "top"}
%td.name= order_article.article.name
- if @order.stockit?
%td= truncate order_article.article.supplier.name, length: 15