Readded nil checks

This commit is contained in:
2016-01-14 21:49:26 -05:00
parent e19688a525
commit 6556197dd0
2 changed files with 15 additions and 5 deletions

View File

@@ -74,4 +74,10 @@ class QboController < ApplicationController
redirect_to qbo_path(:redmine_qbo), :flash => { :notice => "Successfully synced to Quickbooks" }
end
def pdf
@pdf = "#{base.url_for_resource('estimate')}/#{params['qbo_estimate_id']}/pdf"
send_data @pdf, filename: "estimate.pdf", type: :pdf
end
end