This commit is contained in:
@@ -945,8 +945,8 @@ namespace AyaNova.Biz
|
||||
}
|
||||
else
|
||||
o.ContractViz = "-";
|
||||
|
||||
if (o.LastStatusId != null)
|
||||
|
||||
if (o.LastStatusId != null && o.States.Count > 0)
|
||||
{
|
||||
var lastState = o.States[o.States.Count - 1];
|
||||
o.LastStateColorViz = lastState.ColorViz;
|
||||
@@ -1971,7 +1971,7 @@ namespace AyaNova.Biz
|
||||
bool isNew = currentObj == null;
|
||||
QuoteItemExpense oProposed = (QuoteItemExpense)proposedObj;
|
||||
var qid = await GetQuoteIdFromRelativeAsync(AyaType.QuoteItem, oProposed.QuoteItemId, ct);
|
||||
var WorkorderInfo = await ct.Quote.AsNoTracking().Where(x => x.Id == qid.ParentId).Select(x => new { Serial = x.Serial, Tags = x.Tags }).FirstOrDefaultAsync();
|
||||
var WorkorderInfo = await ct.Quote.AsNoTracking().Where(x => x.Id == qid.ParentId).Select(x => new { Serial = x.Serial, Tags = x.Tags }).FirstOrDefaultAsync();
|
||||
oProposed.Tags = WorkorderInfo.Tags;
|
||||
|
||||
//STANDARD EVENTS FOR ALL OBJECTS
|
||||
|
||||
@@ -1102,7 +1102,7 @@ namespace AyaNova.Biz
|
||||
o.FromPMViz = value;
|
||||
}
|
||||
|
||||
if (o.LastStatusId != null)
|
||||
if (o.LastStatusId != null && o.States.Count > 0)
|
||||
{
|
||||
var lastState = o.States[o.States.Count - 1];
|
||||
o.LastStateColorViz = lastState.ColorViz;
|
||||
|
||||
Reference in New Issue
Block a user