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:
Patrick Gansterer 2016-03-04 17:31:41 +01:00 committed by wvengen
parent b30b4e46d8
commit b623b6abbf
1 changed files with 11 additions and 12 deletions

View File

@ -7,7 +7,6 @@
- if @invoice.orders.first - 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 %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 .fold-line
.control-group .control-group
%label.control-label{for: 'created_at'} %label.control-label{for: 'created_at'}