case 4059
This commit is contained in:
@@ -1971,11 +1971,7 @@ namespace AyaNova.Biz
|
|||||||
bool isNew = currentObj == null;
|
bool isNew = currentObj == null;
|
||||||
QuoteItemExpense oProposed = (QuoteItemExpense)proposedObj;
|
QuoteItemExpense oProposed = (QuoteItemExpense)proposedObj;
|
||||||
var qid = await GetQuoteIdFromRelativeAsync(AyaType.QuoteItem, oProposed.QuoteItemId, ct);
|
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();
|
||||||
if (WorkorderInfo != null)
|
|
||||||
oProposed.Name = WorkorderInfo.Serial.ToString();
|
|
||||||
else
|
|
||||||
oProposed.Name = "??";
|
|
||||||
oProposed.Tags = WorkorderInfo.Tags;
|
oProposed.Tags = WorkorderInfo.Tags;
|
||||||
|
|
||||||
//STANDARD EVENTS FOR ALL OBJECTS
|
//STANDARD EVENTS FOR ALL OBJECTS
|
||||||
|
|||||||
Reference in New Issue
Block a user