Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-19 18:32:06 +00:00
co-authored by renee-png
parent 12f6269bdd
commit 0258aeafff
+5 -1
View File
@@ -538,7 +538,11 @@ const IMPORTERS: ImporterConfig[] = [
(r._casenum && ctx.caseByNumber.get(String(r._casenum))) ||
(r._casename && ctx.caseByTitle.get(String(r._casename).toLowerCase().trim())) ||
null;
// Keep hints; async pre-insert step may create an archived case.
// Only accept active (non-archived, non-closed) cases.
if (r.case_id && !ctx.activeCaseIds.has(r.case_id)) {
r.case_id = null;
}
// Keep hints; pre-insert step decides whether to skip.
if (r.amount == null) return null;
r.user_id = ctx.userId;
return r;