48b6515c08
* Since s.b. started this already. I changed every string 'Lieferant' to 'Lieferantin' to give note on female existance in this world :-)
30 lines
No EOL
985 B
Text
30 lines
No EOL
985 B
Text
.box_title
|
|
%h2 Laufende Bestellungen
|
|
.column_content
|
|
- unless Order.open.empty?
|
|
%table.list
|
|
%thead
|
|
%tr
|
|
%th Lieferantin
|
|
%th Ende
|
|
%th Wer hat bestellt?
|
|
%th Summe
|
|
%tbody
|
|
- total = 0
|
|
- Order.open.each do |order|
|
|
%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)
|
|
- total += group_order.price
|
|
%td=h "#{group_order.updated_by.nick} (#{format_time(group_order.updated_on)})"
|
|
%td= number_to_currency(group_order.price)
|
|
- else
|
|
%td
|
|
%td
|
|
- if total > 0
|
|
%p
|
|
Gesamtsumme:
|
|
%b= number_to_currency(total)
|
|
- else
|
|
%i Derzeit gibt es keine laufenden Bestellungen |