mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
Removed unused method
This commit is contained in:
@@ -35,17 +35,6 @@ class Estimate < ActiveRecord::Base
|
|||||||
EstimateSyncJob.perform_later(doc_number: number)
|
EstimateSyncJob.perform_later(doc_number: number)
|
||||||
end
|
end
|
||||||
|
|
||||||
# download the pdf from quickbooks
|
|
||||||
def pdf
|
|
||||||
log "Downloading PDF for estimate ##{self.id}..."
|
|
||||||
qbo = Qbo.first
|
|
||||||
qbo.perform_authenticated_request do |access_token|
|
|
||||||
service = Quickbooks::Service::Estimate.new(company_id: qbo.realm_id, access_token: access_token)
|
|
||||||
estimate = service.fetch_by_id(id)
|
|
||||||
service.pdf(estimate)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
# Magic Method
|
# Magic Method
|
||||||
# Maps Get/Set methods to QBO estimate object
|
# Maps Get/Set methods to QBO estimate object
|
||||||
def method_missing(sym, *arguments)
|
def method_missing(sym, *arguments)
|
||||||
|
|||||||
Reference in New Issue
Block a user