@@ -30,7 +30,6 @@ FROM Contribution AS c
3030WHERE c .FundId <> @ProjectOfMonthFund
3131 AND c .ContributionTypeId <> 99
3232 AND c .ContributionDate >= @StartDate AND c .ContributionDate < dateadd (day , 1 , @EndDate)
33- -- AND c.ContributionDate between @StartDate AND @EndDate
3433 AND bh .BundleStatusId = 0
3534GROUP BY t .BatchRef , bht .Code , CONVERT (VARCHAR , c .ContributionDate , 101 ), CONVERT (VARCHAR , t .Settled , 101 ), c .FundId , cf .FundName , cf .FundAccountCode , cf .FundIncomeAccount , cf .FundIncomeDept , cf .FundIncomeFund
3635
@@ -61,7 +60,6 @@ FROM Contribution AS c
6160WHERE c .FundId <> @ProjectOfMonthFund
6261 AND c .ContributionTypeId = 99
6362 AND c .ContributionDate >= @StartDate AND c .ContributionDate < dateadd (day , 1 , @EndDate)
64- -- AND c.ContributionDate between @StartDate AND @EndDate
6563 AND bh .BundleStatusId = 0
6664GROUP BY t .BatchRef , bht .Code , CONVERT (VARCHAR , c .ContributionDate , 101 ), CONVERT (VARCHAR , t .Settled , 101 ), oe .Data , o .OrganizationName
6765
@@ -89,7 +87,6 @@ FROM Contribution AS c
8987 LEFT JOIN lookup .BundleHeaderTypes AS bht on bht .Id = bh .BundleHeaderTypeId
9088WHERE c .FundId = @ProjectOfMonthFund
9189 AND c .ContributionDate >= @StartDate AND c .ContributionDate < dateadd (day , 1 , @EndDate)
92- -- AND c.ContributionDate between @StartDate AND @EndDate
9390 AND bh .BundleStatusId = 0
9491GROUP BY t .BatchRef , bht .Code , CONVERT (VARCHAR , c .ContributionDate , 101 ), CONVERT (VARCHAR , t .Settled , 101 ), c .FundId , FORMAT (c .ContributionDate , ' Y' , ' en-US' ), cf .FundName , cf .FundAccountCode , cf .FundIncomeAccount , cf .FundIncomeDept , cf .FundIncomeFund
9592
0 commit comments