fix: reset syncStatus to 'synced' when file is confirmed in-sync in AdvowareDocumentSyncUtils

This commit is contained in:
bsiggel
2026-03-31 07:14:52 +00:00
parent 8df214afb0
commit 0bd397803e

View File

@@ -333,6 +333,10 @@ class AdvowareDocumentSyncUtils:
if history_erstellung and history_erstellung != espo_erstellung:
updates['advowareErstellungTimestamp'] = history_erstellung
# File is confirmed in-sync (SKIP = no file changes) → reset syncStatus if unclean
if espo_doc.get('syncStatus') != 'synced':
updates['syncStatus'] = 'synced'
# Always update lastSyncTimestamp when metadata changes (EspoCRM format)
if len(updates) > 0:
updates['lastSyncTimestamp'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')