2012-11-12 13:13:01 +01:00
|
|
|
- title "Bestellüberblick", false
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
- content_for :sidebar do
|
|
|
|
.well.well-small
|
|
|
|
// Ordergroups Account Balance
|
|
|
|
%h2 Guthaben
|
|
|
|
%table.table.table-striped
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2009-01-29 01:57:51 +01:00
|
|
|
%td Kontostand:
|
2012-10-15 21:19:17 +02:00
|
|
|
%td.numeric{:style => "width:5em"}= number_to_currency(@ordergroup.account_balance)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2012-10-15 21:19:17 +02:00
|
|
|
%td - laufende Bestellungen:
|
|
|
|
%td.numeric= number_to_currency(@ordergroup.value_of_open_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2011-06-19 15:30:33 +02:00
|
|
|
%td= "- nicht abgerechnete Bestellungen:"
|
2012-10-15 21:19:17 +02:00
|
|
|
%td.numeric= number_to_currency(@ordergroup.value_of_finished_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2009-01-29 01:57:51 +01:00
|
|
|
%th verfügbares Guthaben:
|
2012-10-15 21:19:17 +02:00
|
|
|
%th.numeric= number_to_currency(@ordergroup.get_available_funds)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
= render :partial => "shared/open_orders", :locals => {:ordergroup => @ordergroup}
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
// finished orders
|
|
|
|
- unless Order.finished.empty?
|
|
|
|
%section
|
|
|
|
%h2 Nicht abgerechnete Bestellungen
|
|
|
|
= render :partial => "orders", :locals => {:orders => Order.finished_not_closed, :pagination => false}
|
|
|
|
- if @ordergroup.value_of_finished_orders > 0
|
|
|
|
%p
|
|
|
|
Gesamtsumme:
|
|
|
|
%b= number_to_currency(@ordergroup.value_of_finished_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2012-10-15 21:19:17 +02:00
|
|
|
// closed orders
|
|
|
|
- unless Order.closed.empty?
|
|
|
|
%section
|
|
|
|
%h2 Abgerechnete Bestellungen
|
|
|
|
= render :partial => "orders", :locals => {:orders => Order.closed.all(:limit => 5), :pagination => false}
|
|
|
|
%br/
|
|
|
|
= link_to "mehr...", archive_group_orders_path
|