mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Added relationship to issues, renamed qbp_customer, started cleaning up
listeners
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user