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:14:22 +00:00
co-authored by renee-png
parent 7bb0ae00b3
commit 079ef50211
+3 -2
View File
@@ -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;