From 079ef5021199af181b1c71d9475c94b4659c9e6d 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:14:22 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/settings.import.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/settings.import.tsx b/src/routes/settings.import.tsx index 62cf14a..04627f4 100644 --- a/src/routes/settings.import.tsx +++ b/src/routes/settings.import.tsx @@ -425,8 +425,9 @@ const IMPORTERS: ImporterConfig[] = [ r.user_id = uid || ctx.userId; delete r._username; - // Invoice number is informational — we don't link it (would require invoice lookup). - delete r._invoice; + // Invoice number — keep as hint; async pre-insert step will look up or + // create an invoice with that number and link this row to it. + // (do NOT delete _invoice here) if (r.hours == null || r.hours <= 0) return null; if (!r.description) return null;