mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Webhook
This commit is contained in:
1 parent
670b0aac67
commit
863a5efa38
1 file changed
+1
-1
@@ -36,7 +36,7 @@ class QboEstimate < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def self.sync_by_id(id)
|
||||
estimates = get_base.service.fetch_by_id(id)
|
||||
estimate = get_base.service.fetch_by_id(id)
|
||||
qbo_estimate = QboEstimate.find_or_create_by(id: estimate.id)
|
||||
qbo_estimate.doc_number = estimate.doc_number
|
||||
qbo_estimate.id = estimate.id
|
||||
|
||||
Reference in new issue
Block a user