We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 85b74fe + a71cc0b commit 4130006Copy full SHA for 4130006
1 file changed
sql/stored_procedures/uspProcessbatch.sql
@@ -59,7 +59,7 @@ BEGIN
59
60
DECLARE @startDateMonth date = DATEFROMPARTS(@Year, @Period ,'01')
61
DECLARE @startDateYear date = DATEFROMPARTS(@Year, '01' ,'01')
62
- DECLARE @endDate date = EOMONTH(@startDateMonth)
+ DECLARE @endDate date = DATEADD(day, 1, EOMONTH(@startDateMonth))
63
64
65
-- if @endDate > GETDATE()
0 commit comments