Added relationship to issues, renamed qbp_customer, started cleaning up

listeners
This commit is contained in:
2016-01-13 20:37:02 -05:00
parent 6f194e37bd
commit ec1c263347
6 changed files with 86 additions and 37 deletions

View File

@@ -27,4 +27,12 @@ class QboEstimate < ActiveRecord::Base
qbo_estimate.save!
}
end
def self.update(id)
# Update the item table
estimate = get_base.service.fetch_by_id(id)
qbo_estimate = QboEstimate.find_or_create_by(id: id)
qbo_estimate.doc_number = estimate.doc_number
qbo_estimate.save!
end
end