mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Readded nil checks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user