This commit is contained in:
@@ -44,6 +44,8 @@ namespace AyaNova.Biz
|
||||
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
|
||||
if (HasErrors)
|
||||
return null;
|
||||
|
||||
@@ -1121,7 +1121,7 @@ namespace AyaNova.Biz
|
||||
|
||||
if (o.FromPMId != null)
|
||||
o.FromPMViz = await ct.PM.AsNoTracking().Where(x => x.Id == o.FromPMId).Select(x => x.Serial.ToString()).FirstOrDefaultAsync();
|
||||
|
||||
|
||||
if (o.FromCSRId != null)
|
||||
o.FromCSRViz = await ct.CustomerServiceRequest.AsNoTracking().Where(x => x.Id == o.FromCSRId).Select(x => x.Name).FirstOrDefaultAsync();
|
||||
|
||||
@@ -4349,7 +4349,7 @@ namespace AyaNova.Biz
|
||||
PartInventoryBiz pib = new PartInventoryBiz(ct, UserId, UserTranslationId, CurrentUserRoles);
|
||||
|
||||
//DELETED, HANDLE INVENTORY / RETURN SERIALS
|
||||
if (ayaEvent == AyaEvent.Deleted)
|
||||
if (ayaEvent == AyaEvent.Deleted && oldObj.Quantity != 0)
|
||||
{
|
||||
dtInternalPartInventory pi =
|
||||
new dtInternalPartInventory
|
||||
|
||||
Reference in New Issue
Block a user