2009-02-05 16:40:02 +01:00
|
|
|
- title "#{@order.name} abrechnen"
|
2009-01-10 22:22:16 +01:00
|
|
|
|
2012-11-10 16:44:05 +01:00
|
|
|
- content_for :sidebar do
|
|
|
|
.well.well-small
|
|
|
|
%h3 Zusammenfassung
|
|
|
|
#summary= render 'summary', order: @order
|
2009-02-06 16:26:35 +01:00
|
|
|
|
2012-11-10 16:44:05 +01:00
|
|
|
.well.well-small
|
|
|
|
%h3 Rechnung
|
|
|
|
#invoice= render 'invoice', invoice: @order.invoice
|
2009-01-29 21:28:22 +01:00
|
|
|
|
2012-11-10 16:44:05 +01:00
|
|
|
.well.well-small
|
|
|
|
%h3 Notizen/Protokoll
|
2009-01-06 11:49:19 +01:00
|
|
|
#note
|
|
|
|
- unless @order.note.empty?
|
|
|
|
= simple_format @order.note
|
|
|
|
- else
|
|
|
|
%p Hier kannst Du deine Abrechnung kommentieren
|
2012-05-12 10:55:20 +02:00
|
|
|
= link_to "Notiz bearbeiten", edit_note_finance_order_path(@order), remote: true
|
2012-11-10 16:44:05 +01:00
|
|
|
|
|
|
|
.well.well-small
|
|
|
|
%h3 Kommentare
|
|
|
|
#comments= render :partial => 'shared/comments', locals: {comments: @order.comments}
|
|
|
|
|
|
|
|
.well.well-small
|
|
|
|
.btn-toolbar
|
|
|
|
.btn-group
|
|
|
|
- unless @order.invoice or @order.stockit?
|
|
|
|
= link_to "Rechnung anlegen", new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier),
|
|
|
|
class: 'btn'
|
|
|
|
- unless @order.closed?
|
|
|
|
= link_to "Bestellung abschließen", confirm_finance_order_path(@order), class: 'btn btn-primary'
|
|
|
|
|
|
|
|
#editOrderNav.btn-group.pull-right
|
|
|
|
= link_to '#', data: {toggle: 'dropdown'}, class: 'btn dropdown-toggle' do
|
|
|
|
Ansichtsoptionen
|
|
|
|
%span.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li= link_to 'Bestellung bearbeiten', new_finance_order_path(order_id: @order.id, view: 'edit_results'),
|
|
|
|
remote: true
|
|
|
|
%li= link_to 'Gruppenübersicht', new_finance_order_path(order_id: @order.id, view: 'groups_overview'),
|
|
|
|
remote: true
|
|
|
|
%li= link_to 'Artikelübersicht', new_finance_order_path(order_id: @order.id, view: 'articles_overview'),
|
|
|
|
remote: true
|
|
|
|
|
|
|
|
%section#results
|
|
|
|
= render 'edit_results_by_articles'
|
|
|
|
%p= link_to_top
|
2009-01-06 11:49:19 +01:00
|
|
|
#edit_box{:style => 'display:none'}
|