Add created_by to invoice and show it

This commit is contained in:
Patrick Gansterer 2016-02-17 16:11:01 +01:00 committed by wvengen
parent 76ea0cc411
commit 3d6f908102
10 changed files with 28 additions and 3 deletions

View file

@ -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')