This commit is contained in:
2026-04-07 10:44:03 +02:00
parent aadf98bc80
commit 1933c74395
19 changed files with 906 additions and 246 deletions

View File

@@ -297,7 +297,7 @@ final class ShopproOrdersSyncService
}
/**
* @return array<string, string>
* @return array<string, string> shoppro_status_code => orderpro_status_code (reverse of DB direction)
*/
private function buildStatusMap(int $integrationId): array
{
@@ -309,7 +309,9 @@ final class ShopproOrdersSyncService
if ($shopCode === '' || $orderCode === '') {
continue;
}
$map[$shopCode] = $orderCode;
if (!isset($map[$shopCode])) {
$map[$shopCode] = $orderCode;
}
}
return $map;