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
|
|
@ -20,6 +20,7 @@ class Finance::InvoicesController < ApplicationController
|
|||
|
||||
def create
|
||||
@invoice = Invoice.new(params[:invoice])
|
||||
@invoice.created_by = current_user
|
||||
|
||||
if @invoice.save
|
||||
flash[:notice] = I18n.t('finance.create.notice')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue