Remove useless if in invoices form
The created_at field has a value all the time, so the check if it is set make no sense since it evaluates to true all the time.
This commit is contained in:
parent
b30b4e46d8
commit
b623b6abbf
1 changed files with 11 additions and 12 deletions
|
@ -7,7 +7,6 @@
|
|||
- if @invoice.orders.first
|
||||
%p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_order'), new_finance_order_path(order_id: @invoice.orders.first.id))).html_safe
|
||||
|
||||
- if @invoice.created_at
|
||||
.fold-line
|
||||
.control-group
|
||||
%label.control-label{for: 'created_at'}
|
||||
|
|
Loading…
Reference in a new issue