Add created_by to invoice and show it
This commit is contained in:
parent
76ea0cc411
commit
3d6f908102
10 changed files with 28 additions and 3 deletions
|
|
@ -7,6 +7,11 @@
|
|||
- if @invoice.order
|
||||
%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
|
||||
|
||||
- if @invoice.created_at
|
||||
= f.input :created_at do
|
||||
= format_time(@invoice.created_at)
|
||||
= f.input :created_by do
|
||||
= show_user(@invoice.created_by)
|
||||
= f.association :supplier, hint: false
|
||||
= f.input :number
|
||||
= f.input :date, as: :date_picker
|
||||
|
|
|
|||
|
|
@ -1,5 +1,11 @@
|
|||
- title t('.title', number: @invoice.number)
|
||||
|
||||
%p
|
||||
%b= heading_helper(Invoice, :created_at) + ':'
|
||||
= format_time(@invoice.created_at)
|
||||
%p
|
||||
%b= heading_helper(Invoice, :created_by) + ':'
|
||||
= show_user(@invoice.created_by)
|
||||
%p
|
||||
%b= heading_helper(Invoice, :supplier) + ':'
|
||||
= @invoice.supplier.name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue