fix(notify): fixed to plantto plant that would cause multiple emails to be sent and never update
This commit is contained in:
@@ -36,8 +36,8 @@ x.idjournal = e.idjournal
|
||||
|
||||
where idjournalStatus = 62
|
||||
--and idadressen = 270
|
||||
--and a.bezeichnung like '%Alpla%' -- we only want to monitor for addresses that are linked to alpla.
|
||||
and a.bezeichnung like '%Alpla%' -- we only want to monitor for addresses that are linked to alpla.
|
||||
and JournalDatum > DATEADD(MINUTE, -[timeCheck], GETDATE())
|
||||
and e.idjournal not in ([ignoreBols])
|
||||
and e.journalNummer not in ([ignoreBols])
|
||||
and idauftrag > 1 -- this will ignore all incoming goodsv as we are really only looking for outbound deliveries
|
||||
order by JournalDatum desc
|
||||
Reference in New Issue
Block a user