This commit is contained in:
@@ -606,6 +606,16 @@ namespace AyaNova.Biz
|
||||
}
|
||||
}
|
||||
|
||||
List<string> ImportSerials = new List<string>();
|
||||
if (j["PartSerialsViz"] != null)
|
||||
{
|
||||
var raw = (string)j["PartSerialsViz"];
|
||||
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();
|
||||
|
||||
if (existingId == 0)
|
||||
|
||||
Reference in New Issue
Block a user