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

58 lines
2 KiB
Text
Raw Normal View History

- title "#{@order.name} abrechnen"
- if @order.closed?
2009-01-06 11:49:19 +01:00
%p
%b Achtung, Bestellung wurde schon abgerechnet!
.left_column{:style => 'width: 24em'}
2009-01-06 11:49:19 +01:00
.box_title
%h2 Zusammenfassung
2009-01-06 11:49:19 +01:00
.column_content#summary
= render :partial => "summary", :locals => {:order => @order}
- unless @order.stockit?
.left_column{:style => 'width: 24em'}
.box_title
%h2 Rechnung
.column_content#invoice
= render :partial => "invoice", :locals => {:invoice => @order.invoice}
2009-01-06 11:49:19 +01:00
.right_column{:style => 'width: 20em'}
.box_title
%h2 Aktionen
.column_content
%ul
- unless @order.invoice
%li= link_to "Rechnung anlegen", new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier)
- unless @order.closed?
%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
%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
= 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
%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
= render :partial => 'edit_results_by_articles'
2009-01-06 11:49:19 +01:00
%p= link_to_top
#edit_box{:style => 'display:none'}