foodsoft/app/views/finance/balancing/list.html.haml

29 lines
1.2 KiB
Text
Raw Normal View History

- title "beendete Bestellungen"
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")}
%td= link_to truncate(order.name), new_finance_order_path(order_id: order.id)
2009-01-06 11:49:19 +01:00
%td=h format_time(order.ends) unless order.ends.nil?
%td= order.closed? ? "abgerechnet (#{number_to_currency order.foodcoop_result})" : "beendet"
2009-01-06 11:49:19 +01:00
%td= order.updated_by.nil? ? '??' : order.updated_by.nick
%td
- unless order.closed?
= link_to "abrechnen", new_finance_order_path(order_id: order.id)
2009-01-06 11:49:19 +01:00
|
= link_to 'direkt schließen', close_direct_finance_order_path(order),
:confirm => 'Wirklich die Bestellung schließen setzen?', :method => :put
2009-01-06 11:49:19 +01:00
- else
%i derzeit gibt es keine beendeten Bestellungen