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,
UserId = sub.UserId,
AyaType = AyaType.WorkOrder,
AyaType = AyaType.Quote,
ObjectId = oProposed.QuoteId,
NotifySubscriptionId = sub.Id,
Name = $"{QuoteInfo.Serial.ToString()} - {qos.Name}"
@@ -1287,14 +1287,14 @@ namespace AyaNova.Biz
//not for inactive users
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))
{
NotifyEvent n = new NotifyEvent()
{
EventType = NotifyEventType.QuoteStatusAge,
UserId = sub.UserId,
AyaType = AyaType.WorkOrder,
AyaType = AyaType.Quote,
ObjectId = oProposed.QuoteId,
NotifySubscriptionId = sub.Id,
Name = $"{QuoteInfo.Serial.ToString()} - {qos.Name}"
@@ -1306,9 +1306,6 @@ namespace AyaNova.Biz
}
}//quote status age event
}
}//end of process notifications