mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update estimate_controller.rb
Added Document Number to the file name
This commit is contained in:
@@ -15,8 +15,9 @@ class EstimateController < ApplicationController
|
|||||||
#
|
#
|
||||||
def show
|
def show
|
||||||
base = QboEstimate.get_base.service
|
base = QboEstimate.get_base.service
|
||||||
@pdf = base.pdf(base.fetch_by_id(params[:id]))
|
estimate = base.fetch_by_id(params[:id])
|
||||||
send_data @pdf, filename: "estimate.pdf", :disposition => 'inline', :type => "application/pdf"
|
@pdf = base.pdf(estimate)
|
||||||
|
send_data @pdf, filename: "estimate #{estimate.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user