This commit is contained in:
2021-07-22 17:48:51 +00:00
parent db7a03e719
commit 4f81bff862
2 changed files with 4 additions and 2 deletions

View File

@@ -44,6 +44,8 @@ namespace AyaNova.Biz
internal async Task<Memo> CreateAsync(Memo newObject) internal async Task<Memo> CreateAsync(Memo newObject)
{ {
newObject.Viewed=false;//default, it's new and not viewed yet but could have been set from a prior forward / reply as it's source
newObject.Replied=false;//''
await ValidateAsync(newObject);//a bit different, can't update a memo so only need to worry about new objects await ValidateAsync(newObject);//a bit different, can't update a memo so only need to worry about new objects
if (HasErrors) if (HasErrors)
return null; return null;

View File

@@ -4349,7 +4349,7 @@ namespace AyaNova.Biz
PartInventoryBiz pib = new PartInventoryBiz(ct, UserId, UserTranslationId, CurrentUserRoles); PartInventoryBiz pib = new PartInventoryBiz(ct, UserId, UserTranslationId, CurrentUserRoles);
//DELETED, HANDLE INVENTORY / RETURN SERIALS //DELETED, HANDLE INVENTORY / RETURN SERIALS
if (ayaEvent == AyaEvent.Deleted) if (ayaEvent == AyaEvent.Deleted && oldObj.Quantity != 0)
{ {
dtInternalPartInventory pi = dtInternalPartInventory pi =
new dtInternalPartInventory new dtInternalPartInventory