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
1 changed files with 4 additions and 1 deletions

View File

@ -29,7 +29,10 @@
- if order.stockit?
%td= units
- 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
%p
= t '.prices_sum'