show quantity/tolerance in order screen when unit_quantity=1

This commit is contained in:
wvengen 2013-07-11 23:18:12 +02:00
parent 66e0bbc348
commit f57038ff56

View file

@ -29,7 +29,10 @@
- if order.stockit? - if order.stockit?
%td= units %td= units
- else - else
%td= "#{order_article.quantity} + #{order_article.tolerance}" if unit_quantity > 1 - if unit_quantity > 1 or order_article.tolerance > 0
%td= "#{order_article.quantity} + #{order_article.tolerance}"
- else
%td= "#{order_article.quantity}"
%td= units %td= units
%p %p
= t '.prices_sum' = t '.prices_sum'