2009-02-05 16:40:02 +01:00
|
|
|
- title "#{@order.name} abrechnen"
|
2009-01-10 22:22:16 +01:00
|
|
|
|
2009-01-29 01:57:51 +01:00
|
|
|
- if @order.closed?
|
2009-01-06 11:49:19 +01:00
|
|
|
%p
|
|
|
|
%b Achtung, Bestellung wurde schon abgerechnet!
|
2009-01-29 21:28:22 +01:00
|
|
|
.left_column{:style => 'width: 24em'}
|
2009-01-06 11:49:19 +01:00
|
|
|
.box_title
|
2009-01-29 21:28:22 +01:00
|
|
|
%h2 Zusammenfassung
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content#summary
|
2009-01-29 21:28:22 +01:00
|
|
|
= render :partial => "summary", :locals => {:order => @order}
|
2009-02-06 16:26:35 +01:00
|
|
|
|
|
|
|
- unless @order.stockit?
|
|
|
|
.left_column{:style => 'width: 24em'}
|
|
|
|
.box_title
|
|
|
|
%h2 Rechnung
|
|
|
|
.column_content#invoice
|
|
|
|
= render :partial => "invoice", :locals => {:invoice => @order.invoice}
|
2009-01-29 21:28:22 +01:00
|
|
|
|
2009-01-06 11:49:19 +01:00
|
|
|
.right_column{:style => 'width: 20em'}
|
|
|
|
.box_title
|
|
|
|
%h2 Aktionen
|
|
|
|
.column_content
|
|
|
|
%ul
|
2009-01-29 21:28:22 +01:00
|
|
|
- unless @order.invoice
|
2009-03-20 16:32:47 +01:00
|
|
|
%li= link_to "Rechnung anlegen", new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier)
|
2009-01-29 01:57:51 +01:00
|
|
|
- unless @order.closed?
|
2009-01-10 22:22:16 +01:00
|
|
|
%li= link_to "Bestellung abschließen", :action => "confirm", :id => @order
|
2009-01-06 11:49:19 +01:00
|
|
|
|
|
|
|
.right_column{:style => 'clear:both;width: 28%'}
|
|
|
|
.box_title
|
2009-01-29 21:28:22 +01:00
|
|
|
%h2 Notizen/Protokoll
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content
|
|
|
|
#note
|
|
|
|
- unless @order.note.empty?
|
|
|
|
= simple_format @order.note
|
|
|
|
- else
|
|
|
|
%p Hier kannst Du deine Abrechnung kommentieren
|
2009-01-29 21:28:22 +01:00
|
|
|
= remote_link_to "Notiz bearbeiten", |
|
|
|
|
:update => 'edit_box', :url => {:action => 'edit_note', :id => @order}, |
|
|
|
|
:success => "Element.hide('loader'); Element.show('edit_box')" |
|
|
|
|
.box_title
|
|
|
|
%h2 Kommentare
|
|
|
|
.column_content
|
2009-01-06 11:49:19 +01:00
|
|
|
#comments
|
|
|
|
= render :partial => 'shared/comments'
|
|
|
|
|
|
|
|
.left_column{:style => 'width: 69%'}
|
|
|
|
.box_title
|
|
|
|
#editOrderNav
|
|
|
|
%ul
|
2009-01-29 21:28:22 +01:00
|
|
|
%li= remote_link_to 'Gruppenübersicht', :update => 'results', :url => {:action => 'new', :id => @order, :view => 'groupsOverview'}
|
|
|
|
%li= remote_link_to 'Artikelübersicht', :update => 'results', :url => {:action => 'new', :id => @order, :view => 'articlesOverview'}
|
|
|
|
%li= remote_link_to 'Bestellung bearbeiten', :update => 'results', :url => {:action => 'new', :id => @order, :view => 'editResults'}
|
2009-01-06 11:49:19 +01:00
|
|
|
.column_content
|
|
|
|
#results
|
2009-01-29 21:28:22 +01:00
|
|
|
= render :partial => 'edit_results_by_articles'
|
2009-01-06 11:49:19 +01:00
|
|
|
%p= link_to_top
|
|
|
|
#edit_box{:style => 'display:none'}
|