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
|
2011-06-19 15:30:33 +02:00
|
|
|
%td= "- laufende Bestellungen:"
|
2009-01-29 01:57:51 +01:00
|
|
|
%td{:class => "currency"}= 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:"
|
2009-01-29 01:57:51 +01:00
|
|
|
%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%"}
|
2011-06-19 15:30:33 +02:00
|
|
|
= render :partial => "shared/open_orders", :locals => {:ordergroup => @ordergroup}
|
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-04-20 14:11:11 +02:00
|
|
|
= render :partial => "orders", :locals => {:orders => Order.finished_not_closed, :pagination => false}
|
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-04-20 14:11:11 +02:00
|
|
|
= render :partial => "orders", :locals => {:orders => Order.closed.all(:limit => 5), :pagination => false}
|
2009-01-06 11:49:19 +01:00
|
|
|
%br/
|
2011-06-19 15:30:33 +02:00
|
|
|
= link_to "mehr...", archive_group_orders_path
|