2009-01-29 01:57:51 +01:00
|
|
|
- title "Bestellüberblick"
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-14 12:46:01 +01:00
|
|
|
// Ordergroups Account Balance
|
2009-01-06 11:49:19 +01:00
|
|
|
.left_column{:style => "width:26%"}
|
|
|
|
.box_title
|
2009-01-29 01:57:51 +01:00
|
|
|
%h2=h @ordergroup.name
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content
|
|
|
|
%table
|
|
|
|
%tr
|
2009-01-29 01:57:51 +01:00
|
|
|
%td Kontostand:
|
|
|
|
%td{:class => "currency", :style => "width:5em"}= number_to_currency(@ordergroup.account_balance)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2009-01-29 01:57:51 +01:00
|
|
|
%td - laufende Bestellungen:
|
|
|
|
%td{:class => "currency"}= number_to_currency(@ordergroup.value_of_open_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
%tr
|
2009-01-29 01:57:51 +01:00
|
|
|
%td - nicht abgerechnete Bestellungen:
|
|
|
|
%td{:class => "currency"}= 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:
|
|
|
|
%th{:class => "currency"}= number_to_currency(@ordergroup.get_available_funds)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-10 19:36:58 +01:00
|
|
|
.right_column{:style => "width:70%"}
|
2009-01-29 01:57:51 +01:00
|
|
|
// open orders
|
2009-01-30 19:02:35 +01:00
|
|
|
= render :partial => "shared/open_orders"
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-29 01:57:51 +01:00
|
|
|
// finished orders
|
|
|
|
- unless Order.finished.empty?
|
2009-01-06 11:49:19 +01:00
|
|
|
.box_title
|
2009-01-29 01:57:51 +01:00
|
|
|
%h2 Nicht abgerechnete Bestellungen
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content
|
2009-03-13 00:06:20 +01:00
|
|
|
= render :partial => "orders", :locals => {:orders => Order.finished_not_closed}
|
2009-01-29 01:57:51 +01:00
|
|
|
- if @ordergroup.value_of_finished_orders > 0
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
2009-01-29 01:57:51 +01:00
|
|
|
Gesamtsumme:
|
|
|
|
%b= number_to_currency(@ordergroup.value_of_finished_orders)
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2009-01-29 01:57:51 +01:00
|
|
|
// closed orders
|
|
|
|
- unless Order.closed.empty?
|
2009-01-06 11:49:19 +01:00
|
|
|
.box_title
|
2009-01-29 01:57:51 +01:00
|
|
|
%h2 Abgerechnete Bestellungen
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content
|
2009-01-29 01:57:51 +01:00
|
|
|
= render :partial => "orders", :locals => {:orders => Order.closed.all(:limit => 5)}
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
2009-01-29 01:57:51 +01:00
|
|
|
= link_to "mehr...", :action => "myOrders"
|