mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
removed uneeded comments
This commit is contained in:
@@ -84,7 +84,6 @@ class EstimateSyncService
|
||||
log "Persisting estimate #{remote.id}"
|
||||
local = Estimate.find_or_initialize_by(id: remote.id)
|
||||
|
||||
#if remote.txn_status?
|
||||
local.doc_number = remote.doc_number
|
||||
local.txn_date = remote.txn_date
|
||||
local.customer = Customer.find_by(id: remote.customer_ref&.value)
|
||||
@@ -93,14 +92,6 @@ class EstimateSyncService
|
||||
local.save
|
||||
log "Updated estimate #{remote.id}"
|
||||
end
|
||||
|
||||
# TODO handle deleted estimates
|
||||
#else
|
||||
# if local.persisted?
|
||||
# local.destroy
|
||||
# log "Deleted estimate #{remote.id}"
|
||||
# end
|
||||
# end
|
||||
rescue => e
|
||||
log "Failed to sync estimate #{remote.id}: #{e.message}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user