This commit is contained in:
@@ -1115,6 +1115,16 @@ namespace AyaNova.Biz
|
||||
}
|
||||
else
|
||||
o.ContractViz = "-";
|
||||
|
||||
if (o.FromQuoteId != null)
|
||||
o.FromQuoteViz = await ct.Quote.AsNoTracking().Where(x => x.Id == o.FromQuoteId).Select(x => x.Serial.ToString()).FirstOrDefaultAsync();
|
||||
|
||||
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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1583,7 +1593,7 @@ namespace AyaNova.Biz
|
||||
wo.LastStatusId = newObject.WorkOrderStatusId;
|
||||
|
||||
await ct.SaveChangesAsync();
|
||||
|
||||
|
||||
await EventLogProcessor.LogEventToDatabaseAsync(new Event(UserId, newObject.Id, AyaType.WorkOrderStatus, AyaEvent.Created), ct);
|
||||
await StateHandlePotentialNotificationEvent(AyaEvent.Created, newObject);
|
||||
return newObject;
|
||||
|
||||
@@ -90,12 +90,13 @@ namespace AyaNova.Models
|
||||
public bool IsLockedAtServer { get; set; } = false;//signal to client that it came from the server in a locked state
|
||||
[NotMapped]
|
||||
public string AlertViz { get; set; } = null;
|
||||
// [NotMapped]
|
||||
// public bool HasPartCosts { get; set; } = false;//signal to client that part costs were not populated (due to user rights / role / type)
|
||||
// [NotMapped]
|
||||
// public bool HasTravelAndLaborRateCosts { get; set; } = false;
|
||||
// [NotMapped]
|
||||
// public bool HasLoanItemCosts { get; set; } = false;
|
||||
[NotMapped]
|
||||
public string FromQuoteViz { get; set; }
|
||||
[NotMapped]
|
||||
public string FromPMViz { get; set; }
|
||||
[NotMapped]
|
||||
public string FromCSRViz { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public bool IsCompleteRecord { get; set; } = true;//indicates if some items were removed due to user role / type restrictions (i.e. woitems they are not scheduled on)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user