Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
7bb0ae00b3
commit
079ef50211
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user