Removed .service from get_base call

This commit is contained in:
2017-04-04 09:31:02 -04:00
committed by GitHub
parent f1d2d63f20
commit 4374f9436c

View File

@@ -18,7 +18,7 @@ class EstimateController < ApplicationController
# Downloads and forwards the estimate pdf
#
def show
base = QboEstimate.get_base.service
base = QboEstimate.get_base
estimate = base.fetch_by_id(params[:id])
@pdf = base.pdf(estimate)
send_data @pdf, filename: "estimate #{estimate.doc_number}.pdf", :disposition => 'inline', :type => "application/pdf"