Change order link from invoice form to avoid access problems

This commit is contained in:
Julius 2013-12-30 11:26:10 +01:00
parent 4f80fd0e8c
commit b22677eced

View file

@ -5,7 +5,7 @@
- if @invoice.delivery - if @invoice.delivery
%p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_delivery'), [@invoice.supplier,@invoice.delivery])).html_safe %p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_delivery'), [@invoice.supplier,@invoice.delivery])).html_safe
- if @invoice.order - if @invoice.order
%p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_order'), @invoice.order)).html_safe %p= t('finance.invoices.linked', what_link: link_to(t('finance.invoices.linked_order'), new_finance_order_path(order_id: @invoice.order.id))).html_safe
= f.association :supplier, hint: false = f.association :supplier, hint: false
= f.input :number = f.input :number