parent
74ed02e11e
commit
d31b40bd66
1 changed files with 5 additions and 2 deletions
|
@ -74,7 +74,10 @@
|
|||
%th
|
||||
%abbr{:title => "Menge + Toleranz"} Bestellt
|
||||
%th
|
||||
%abbr{:title => "Unter Berücksichtigung der anderen Gruppen"} Bekommen
|
||||
%abbr{:title => "Unter Berücksichtigung der derzeitigen Bestellungen aller Gruppen"}
|
||||
- if @order.open?
|
||||
Zu
|
||||
Erhalten
|
||||
%th Gesamtpreis
|
||||
%tbody
|
||||
- total = 0 #set counter for order-sum
|
||||
|
@ -101,7 +104,7 @@
|
|||
- total += sub_total
|
||||
- # give the article different colors, dependent on order-result
|
||||
- class_name = "ignored"
|
||||
- if (quantity > 0)
|
||||
- if (quantity + tolerance > 0)
|
||||
- class_name = result > 0 ? 'success' : 'failed'
|
||||
%tr{:class => cycle('even', 'odd', :name => 'articles') + " " + class_name}
|
||||
%td{:style => "width:40%"}
|
||||
|
|
Loading…
Reference in a new issue