Fixed open_orders partial.
This commit is contained in:
parent
5b2df07378
commit
adbe93f39e
3 changed files with 5 additions and 6 deletions
|
|
@ -15,13 +15,12 @@
|
|||
%tr{:class => cycle('even', 'odd', :name => 'open_orders')}
|
||||
%td= link_to h(order.name), :controller => 'ordering', :action => 'order', :id => order
|
||||
%td=h format_time(order.ends) unless order.ends.nil?
|
||||
- if group_order = order.group_order(@ordergroup)
|
||||
- if group_order = order.group_order(ordergroup)
|
||||
- total += group_order.price
|
||||
%td=h "#{group_order.updated_by.nick} (#{format_time(group_order.updated_on)})"
|
||||
%td= "#{group_order.updated_by.nick} (#{format_time(group_order.updated_on)})"
|
||||
%td= number_to_currency(group_order.price)
|
||||
- else
|
||||
%td
|
||||
%td
|
||||
%td{:colspan => 2}
|
||||
- if total > 0
|
||||
%p
|
||||
Gesamtsumme:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue