Don't show action "Create invoice" for stock order

This commit is contained in:
sandoz 2009-10-05 13:36:57 +02:00
parent c3ca3e23f9
commit 305a4ac895

View file

@ -21,7 +21,7 @@
%h2 Aktionen %h2 Aktionen
.column_content .column_content
%ul %ul
- unless @order.invoice - unless @order.invoice or @order.stockit?
%li= link_to "Rechnung anlegen", new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier) %li= link_to "Rechnung anlegen", new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier)
- unless @order.closed? - unless @order.closed?
%li= link_to "Bestellung abschließen", :action => "confirm", :id => @order %li= link_to "Bestellung abschließen", :action => "confirm", :id => @order