refactor(ti): changes to post based on loading date not delivery date
This commit is contained in:
@@ -20,8 +20,8 @@ on x.IdLieferkondition = c.IdLieferkondition
|
|||||||
on b.IdAdresse = x.addressID
|
on b.IdAdresse = x.addressID
|
||||||
|
|
||||||
WHERE AbrufStatus = 1 and
|
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
|
--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, -15, GETDATE()) and DATEADD(HOUR, 36, 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 x.Abbreviation not in ('exw')
|
||||||
and IdAuftragsAbruf not in ([exclude])
|
and IdAuftragsAbruf not in ([exclude])
|
||||||
`;
|
`;
|
||||||
|
|||||||
Reference in New Issue
Block a user