Skip to content

Commit 4130006

Browse files
authored
Merge pull request #164 from openimis/fix-end-date-batch
fix end date for batch process
2 parents 85b74fe + a71cc0b commit 4130006

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sql/stored_procedures/uspProcessbatch.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ BEGIN
5959

6060
DECLARE @startDateMonth date = DATEFROMPARTS(@Year, @Period ,'01')
6161
DECLARE @startDateYear date = DATEFROMPARTS(@Year, '01' ,'01')
62-
DECLARE @endDate date = EOMONTH(@startDateMonth)
62+
DECLARE @endDate date = DATEADD(day, 1, EOMONTH(@startDateMonth))
6363

6464

6565
-- if @endDate > GETDATE()

0 commit comments

Comments
 (0)