Added estimate search in side bar

This commit is contained in:
2022-02-13 10:03:43 -05:00
parent f66fbf6656
commit 4582b8c5b9
8 changed files with 47 additions and 7 deletions

View File

@@ -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