Show button for creating invoices also at finished orders

Check if a order is not opened instead of checking if it is closed.
This commit is contained in:
Patrick Gansterer 2017-01-20 02:42:47 +01:00 committed by wvengen
parent 233ed415c7
commit 925727d3ae
1 changed files with 1 additions and 1 deletions

View File

@ -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'