This commit is contained in:
2022-03-28 14:13:32 +00:00
parent 61913f133e
commit a45c461362

View File

@@ -613,7 +613,7 @@ namespace AyaNova.Biz
if (!string.IsNullOrWhiteSpace(raw))
ImportSerials = raw.Split(',').Select(x => x.Trim()).Where(x => !string.IsNullOrWhiteSpace(x)).ToList();
}
todo: deal with serials, then mega test figure out what's not done here yet
long existingId = await ct.Part.AsNoTracking().Where(z => z.Name == (string)j["Name"]).Select(x => x.Id).FirstOrDefaultAsync();
@@ -643,6 +643,8 @@ namespace AyaNova.Biz
}
else
{
if (j["PartSerialsViz"] != null)
await PutSerialsAsync(res.Id, ImportSerials);
ImportResult.Add($"✔️ {Target.Name}");
}
}
@@ -674,6 +676,8 @@ namespace AyaNova.Biz
}
else
{
if (j["PartSerialsViz"] != null)
await PutSerialsAsync(res.Id, ImportSerials);
ImportResult.Add($"✔️ {Target.Name}");
}
}