From 6463081ba758b426de32e1fdba70d30a6f46fbb1 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 17:15:35 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/settings.import.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);