diff --git a/src/routes/settings.import.tsx b/src/routes/settings.import.tsx index c741bb0..f02332c 100644 --- a/src/routes/settings.import.tsx +++ b/src/routes/settings.import.tsx @@ -1024,6 +1024,13 @@ function ImportPage() { let clientId: string | null = null; if (!caseId) { + // For time entries / expenses, never auto-create cases. + // Skip silently and report a count by reason. + if (cfg.key === "time_entries" || cfg.key === "expenses") { + const hint = row._casename || row._casenum || row._caseext; + bumpSkip(hint ? "no matching active case" : "missing case reference"); + continue; + } // Build display strings from hints const extId = row._caseext ? String(row._caseext) : null; const caseNum = row._casenum ? String(row._casenum).trim() : null;