diff --git a/server/services/sqlServer/querys/notifications/ti/getHeaders.ts b/server/services/sqlServer/querys/notifications/ti/getHeaders.ts index ecb160b..1792f5f 100644 --- a/server/services/sqlServer/querys/notifications/ti/getHeaders.ts +++ b/server/services/sqlServer/querys/notifications/ti/getHeaders.ts @@ -20,8 +20,8 @@ on x.IdLieferkondition = c.IdLieferkondition on b.IdAdresse = x.addressID WHERE AbrufStatus = 1 and ---AbrufLiefertermin between DATEADD(HOUR, -15, GETDATE()) and DATEADD(HOUR, 36, GETDATE()) -- this number will be grabbed from the db with a default of 24hours -AbrufLadeDatum between DATEADD(HOUR, -15, GETDATE()) and DATEADD(HOUR, 36, GETDATE()) -- this number will be grabbed from the db with a default of 24hours +--AbrufLiefertermin between DATEADD(HOUR, -[from], getdate()) and DATEADD(HOUR, [to], GETDATE()) -- this number will be grabbed from the db with a default of 24hours +AbrufLadeDatum between DATEADD(HOUR, -[from], getdate()) and DATEADD(HOUR, [to], GETDATE()) -- this number will be grabbed from the db with a default of 24hours and x.Abbreviation not in ('exw') and IdAuftragsAbruf not in ([exclude]) `;