You are on page 1of 1

SELECT @StatementEventId,

@AccountId,
--@NewStatementSummaryId,
en.NotificationMethodId,
13, --Pending Transfer to Print House
en.RenderTypeId,
en.FileName,
@StatementXML,
ev.EventDesc
FROM Customer.Event ev (NOLOCK)
INNER JOIN Customer.EventNotification en (NOLOCK)
ON en.EventId = ev.EventId
AND en.NotificationMethodId = 1 -- Mail
AND en.IsActive = 1
WHERE @statementDeliveryMethod = 'Mail'
AND ev.EventId = @StatementEventId

You might also like