From a526cb9f60fcfffedfb0e3e7d18afd571941fde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20Gla=CC=88ser?= Date: Sun, 6 Sep 2026 15:38:06 +0200 Subject: [PATCH] Close recovered Shopify events already imported --- modules/erp/import-integration/shopify-delta-run.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/erp/import-integration/shopify-delta-run.php b/modules/erp/import-integration/shopify-delta-run.php index 9746d6e..ac44a62 100644 --- a/modules/erp/import-integration/shopify-delta-run.php +++ b/modules/erp/import-integration/shopify-delta-run.php @@ -209,6 +209,9 @@ function run_shopify_delta(array $env, PDO $pdo, string $cutoff, bool $dryRun, a } if (($result['status'] ?? '') === 'already_imported') { $counters['already_imported']++; + if (!$dryRun && isset($recoverySet[(string) $summaryOrder['id']])) { + shopify_delta_mark_order_events_processed($pdo, (string) $summaryOrder['id']); + } } else { $counters['handed_off']++; if (!$dryRun) {