This commit is contained in:
2022-02-11 00:41:19 +00:00
parent e78624b450
commit 83d0105d05

View File

@@ -1264,7 +1264,7 @@ namespace AyaNova.Biz
{ {
EventType = NotifyEventType.QuoteStatusChange, EventType = NotifyEventType.QuoteStatusChange,
UserId = sub.UserId, UserId = sub.UserId,
AyaType = AyaType.WorkOrder, AyaType = AyaType.Quote,
ObjectId = oProposed.QuoteId, ObjectId = oProposed.QuoteId,
NotifySubscriptionId = sub.Id, NotifySubscriptionId = sub.Id,
Name = $"{QuoteInfo.Serial.ToString()} - {qos.Name}" Name = $"{QuoteInfo.Serial.ToString()} - {qos.Name}"
@@ -1287,14 +1287,14 @@ namespace AyaNova.Biz
//not for inactive users //not for inactive users
if (!await UserBiz.UserIsActive(sub.UserId)) continue; if (!await UserBiz.UserIsActive(sub.UserId)) continue;
//WorkOrder Tag match? (Not State, state has no tags, will be true if no sub tags so always safe to call this) //Quote Tag match? (Not State, state has no tags, will be true if no sub tags so always safe to call this)
if (NotifyEventHelper.ObjectHasAllSubscriptionTags(QuoteInfo.Tags, sub.Tags)) if (NotifyEventHelper.ObjectHasAllSubscriptionTags(QuoteInfo.Tags, sub.Tags))
{ {
NotifyEvent n = new NotifyEvent() NotifyEvent n = new NotifyEvent()
{ {
EventType = NotifyEventType.QuoteStatusAge, EventType = NotifyEventType.QuoteStatusAge,
UserId = sub.UserId, UserId = sub.UserId,
AyaType = AyaType.WorkOrder, AyaType = AyaType.Quote,
ObjectId = oProposed.QuoteId, ObjectId = oProposed.QuoteId,
NotifySubscriptionId = sub.Id, NotifySubscriptionId = sub.Id,
Name = $"{QuoteInfo.Serial.ToString()} - {qos.Name}" Name = $"{QuoteInfo.Serial.ToString()} - {qos.Name}"
@@ -1306,9 +1306,6 @@ namespace AyaNova.Biz
} }
}//quote status age event }//quote status age event
} }
}//end of process notifications }//end of process notifications