show different warning signs for mismatch with ordered and received

This commit is contained in:
wvengen 2013-12-23 12:32:26 +01:00
parent a28c6031a4
commit 03bb83ecc0
2 changed files with 12 additions and 5 deletions

View file

@ -4,8 +4,8 @@
%td{title: units_history_line(order_article)}
= order_article.units
%i.package pkg
- unless order_article.ordered_quantities_equal_to_group_orders?
%span{:style => "color:red;font-weight: bold"} !
- if s=order_article.ordered_quantities_different_from_group_orders?
%span{:style => "color:red;font-weight: bold"}= s
%td #{order_article.price.unit_quantity} × #{order_article.article.unit}
%td
= number_to_currency(order_article.price.price, :unit => "")