From f57038ff56db85fef912ca53e26069b167d39563 Mon Sep 17 00:00:00 2001 From: wvengen Date: Thu, 11 Jul 2013 23:18:12 +0200 Subject: [PATCH] show quantity/tolerance in order screen when unit_quantity=1 --- app/views/orders/_articles.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/orders/_articles.html.haml b/app/views/orders/_articles.html.haml index 3f176128..8508e6e8 100644 --- a/app/views/orders/_articles.html.haml +++ b/app/views/orders/_articles.html.haml @@ -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'