diff --git a/app/models/qbo_estimate.rb b/app/models/qbo_estimate.rb index 070a2b4..1c78c84 100644 --- a/app/models/qbo_estimate.rb +++ b/app/models/qbo_estimate.rb @@ -15,7 +15,7 @@ class QboEstimate < ActiveRecord::Base validates_presence_of :id, :doc_number def self.get_base - Quickbooks::Base.new(Qbo.get_account, :estimate) + Qbo.get_base(:estimate) end def self.update_all @@ -35,4 +35,4 @@ class QboEstimate < ActiveRecord::Base qbo_estimate.doc_number = estimate.doc_number qbo_estimate.save! end -end \ No newline at end of file +end