diff --git a/app/views/orders/show.html.haml b/app/views/orders/show.html.haml index b2db94f1..8e8a42be 100644 --- a/app/views/orders/show.html.haml +++ b/app/views/orders/show.html.haml @@ -4,7 +4,7 @@ - content_for :actionbar do - if @order.invoice.present? = link_to t('.show_invoice'), finance_invoice_path(@order.invoice), class: 'btn' - - elsif @order.closed? + - elsif !@order.open? = link_to t('.create_invoice'), new_finance_invoice_path(:order_id => @order, :supplier_id => @order.supplier), class: 'btn'