This commit is contained in:
2021-02-25 18:39:23 +00:00
parent d13fea35fe
commit a1946398b2
7 changed files with 38 additions and 24 deletions

View File

@@ -623,11 +623,18 @@ namespace AyaNova.Biz
await PartBiz.RemoveSerialsAsync(oldItem.PartId, oldItem.Serials, ct, UserId);
await PartBiz.AppendSerialsAsync(newItem.PartId, newItem.Serials, ct, UserId);
}
continue;//on to next
}
//### BEFORE ADDING MORE CHECKS HERE MAKE SURE LOGIC WORKS WITH ABOVE ###
//SERIALS CHANGED
if (oldItem.Serials != newItem.Serials)
{
await PartBiz.RemoveSerialsAsync(oldItem.PartId, oldItem.Serials, ct, UserId);
await PartBiz.AppendSerialsAsync(newItem.PartId, newItem.Serials, ct, UserId);
}
//### BEFORE ADDING MORE CHECKS HERE MAKE SURE LOGIC WORKS WITH ABOVE (and add continue statement) ###
}
}//modified block