mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update invoice_controller.rb
Added Document Number to filename
This commit is contained in:
1 parent
e115e8fe94
commit
fd8a068f16
1 file changed
+3
-2
@@ -15,7 +15,8 @@ class InvoiceController < ApplicationController
|
|||||||
#
|
#
|
||||||
def show
|
def show
|
||||||
base = QboInvoice.get_base.service
|
base = QboInvoice.get_base.service
|
||||||
@pdf = base.pdf(base.fetch_by_id(params[:id]))
|
invoice = base.fetch_by_id(params[:id])
|
||||||
send_data @pdf, filename: "invoice.pdf", :disposition => 'inline', :type => "application/pdf"
|
@pdf = base.pdf(invoice)
|
||||||
|
send_data @pdf, filename: "invoice #{invoice.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in new issue
Block a user