diff --git a/src/routes/settings.import.tsx b/src/routes/settings.import.tsx index 2a40b3b..5873da6 100644 --- a/src/routes/settings.import.tsx +++ b/src/routes/settings.import.tsx @@ -825,7 +825,7 @@ function ImportPage() { // archived client + archived case from the row hints, then attach a // placeholder voided invoice so the row imports as "already invoiced". if (cfg.table === "time_entries" || cfg.table === "expenses") { - const placeholderInvoiceByClient = new Map(); + // Cache of (clientId,invoiceNumber) -> invoiceId is defined below const ensureArchivedClient = async (name: string, extId?: string | null): Promise => { const key = name.toLowerCase().trim(); const existing = (extId && ctx.clientByExt.get(String(extId))) || ctx.clientByName.get(key);