mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
Fix: only attach invoices if document is updated
This commit is contained in:
@@ -109,10 +109,10 @@ class SyncServiceBase
|
|||||||
if local.changed?
|
if local.changed?
|
||||||
local.save!
|
local.save!
|
||||||
log "Updated #{@entity.name} #{remote.id}"
|
log "Updated #{@entity.name} #{remote.id}"
|
||||||
end
|
|
||||||
|
|
||||||
# Handle attaching documents if applicable to invoices
|
# Handle attaching documents if applicable to invoices
|
||||||
attach_documents(local, remote)
|
attach_documents(local, remote)
|
||||||
|
end
|
||||||
|
|
||||||
rescue => e
|
rescue => e
|
||||||
log "Failed to sync #{@entity.name} #{remote.id}: #{e.message}"
|
log "Failed to sync #{@entity.name} #{remote.id}: #{e.message}"
|
||||||
|
|||||||
Reference in New Issue
Block a user