mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Added estimate search in side bar
This commit is contained in:
@@ -55,4 +55,12 @@ class QboEstimate < ActiveRecord::Base
|
||||
qbo_estimate.id = estimate.id
|
||||
qbo_estimate.save!
|
||||
end
|
||||
|
||||
# download the pdf from quickbooks
|
||||
def pdf
|
||||
base = QboEstimate.get_base
|
||||
estimate = base.fetch_by_id(id)
|
||||
return base.pdf(estimate)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user