Class: InvoicesController

Inherits:
AuthorizedController show all
Defined in:
app/controllers/invoices_controller.rb

Instance Method Summary collapse

Methods inherited from AuthorizedController

#set_locale

Instance Method Details

#letterObject



18
19
20
# File 'app/controllers/invoices_controller.rb', line 18

def letter
  show!
end

#newObject

Actions



10
11
12
13
14
15
16
# File 'app/controllers/invoices_controller.rb', line 10

def new
  invoice_params = params[:invoice] || {}
  invoice_params.merge!(:company_id => current_tenant.company.id)
  @invoice = Invoice.new(invoice_params)

  new!
end