This commit is contained in:
2022-03-08 18:48:55 +00:00
parent c95540920c
commit df2997e433
4 changed files with 83 additions and 12 deletions

View File

@@ -206,7 +206,15 @@ namespace AyaNova.Biz
IMailer m = AyaNova.Util.ServiceProviderProvider.Mailer;
//generate report if applicable
if (subscription.LinkReportId != null)
bool isReportableEvent = false;
switch (ne.EventType)
{
case NotifyEventType.QuoteStatusChange:
case NotifyEventType.WorkorderCompleted:
isReportableEvent = true;
break;
}
if (isReportableEvent && subscription.LinkReportId != null)
{
long subTranslationId = (long)subscription.TranslationId;
@@ -269,7 +277,7 @@ namespace AyaNova.Biz
}
}
else
await m.SendEmailAsync(deliveryAddress, ne.Subject, ne.Message, ServerGlobalOpsSettingsCache.Notify);
await m.SendEmailAsync(deliveryAddress, Subject, Body, ServerGlobalOpsSettingsCache.Notify);
}