mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Removed .service from get_base call
This commit is contained in:
@@ -18,7 +18,7 @@ class EstimateController < ApplicationController
|
|||||||
# Downloads and forwards the estimate pdf
|
# Downloads and forwards the estimate pdf
|
||||||
#
|
#
|
||||||
def show
|
def show
|
||||||
base = QboEstimate.get_base.service
|
base = QboEstimate.get_base
|
||||||
estimate = base.fetch_by_id(params[:id])
|
estimate = base.fetch_by_id(params[:id])
|
||||||
@pdf = base.pdf(estimate)
|
@pdf = base.pdf(estimate)
|
||||||
send_data @pdf, filename: "estimate #{estimate.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"
|
send_data @pdf, filename: "estimate #{estimate.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"
|
||||||
|
|||||||
Reference in New Issue
Block a user