fix(notify): fixed to plantto plant that would cause multiple emails to be sent and never update
This commit is contained in:
@@ -17,7 +17,7 @@ use AlplaPROD_test1
|
||||
,av.articlehumanreadableid as article
|
||||
,av.ArticleDescription as alias
|
||||
--,[SSCC_ReserveZiffer]
|
||||
,ROW_NUMBER() OVER (PARTITION BY p.[LfdNrJeArtikelKunde] ORDER BY p.upd_date DESC) AS RowNum
|
||||
--,ROW_NUMBER() OVER (PARTITION BY p.[LfdNrJeArtikelKunde] ORDER BY p.upd_date DESC) AS RowNum
|
||||
--,*
|
||||
|
||||
FROM [dbo].[T_EAIJournalLieferPosition] as p (nolock)
|
||||
@@ -27,10 +27,11 @@ use AlplaPROD_test1
|
||||
-- l.IdProdPlanung = p.Beleg
|
||||
|
||||
left join
|
||||
[test3_AlplaPROD2.0_Read].labelling.InternalLabel as av on
|
||||
[test1_AlplaPROD2.0_Read].labelling.InternalLabel as av on
|
||||
av.RunningNumber = p.[LfdNrJeArtikelKunde]
|
||||
) as a
|
||||
|
||||
where idladeplanung in ([palLinkedToBol]) and RowNum = 1
|
||||
where idladeplanung in ([palLinkedToBol])
|
||||
--and RowNum = 1
|
||||
|
||||
order by runningNr
|
||||
|
||||
Reference in New Issue
Block a user