2009-01-29 21:28:22 +01:00
|
|
|
- title "beendete Bestellungen"
|
|
|
|
%p{:style => "width:30em"}
|
2009-01-06 11:49:19 +01:00
|
|
|
%i
|
2009-01-29 21:28:22 +01:00
|
|
|
Beschreibungstext für die Abrechnunsmodi ....
|
2009-01-06 11:49:19 +01:00
|
|
|
.left_column{:style => "width:70em"}
|
|
|
|
.box_title
|
|
|
|
.column_content
|
|
|
|
- unless @orders.empty?
|
|
|
|
= will_paginate @orders
|
|
|
|
%table.list
|
|
|
|
%thead
|
|
|
|
%tr
|
|
|
|
%th Name
|
|
|
|
%th Ende
|
|
|
|
%th Status
|
|
|
|
%th zuletzt bearbeitet von
|
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- @orders.each do |order|
|
|
|
|
%tr{:class => cycle("even","odd", :name => "order")}
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= link_to truncate(order.supplier.name), :action => "new", :id => order
|
2009-01-06 11:49:19 +01:00
|
|
|
%td=h format_time(order.ends) unless order.ends.nil?
|
2009-01-29 01:57:51 +01:00
|
|
|
%td= order.closed? ? "abgerechnet (#{number_to_currency order.profit})" : "beendet"
|
2009-01-06 11:49:19 +01:00
|
|
|
%td= order.updated_by.nil? ? '??' : order.updated_by.nick
|
|
|
|
%td
|
2009-01-29 01:57:51 +01:00
|
|
|
- unless order.closed?
|
2009-01-10 22:22:16 +01:00
|
|
|
= link_to "abrechnen", :action => "new", :id => order
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
2009-01-29 21:28:22 +01:00
|
|
|
= link_to 'direkt schließen', {:action => 'close_direct', :id => order}, |
|
|
|
|
:confirm => 'Wirklich die Bestellung schließen setzen?', :method => "post" |
|
2009-01-06 11:49:19 +01:00
|
|
|
- else
|
|
|
|
%i derzeit gibt es keine beendeten Bestellungen
|