This commit is contained in:
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user