Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 17:15:35 +00:00
co-authored by renee-png
parent 172400600e
commit 6463081ba7
+1 -1
View File
@@ -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<string, string>();
// Cache of (clientId,invoiceNumber) -> invoiceId is defined below
const ensureArchivedClient = async (name: string, extId?: string | null): Promise<string | null> => {
const key = name.toLowerCase().trim();
const existing = (extId && ctx.clientByExt.get(String(extId))) || ctx.clientByName.get(key);