Skip to content

Commit 3e4f33e

Browse files
authored
Update ExportForIntacct.sql
Removing an errant condition
1 parent d3903ce commit 3e4f33e

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

SageIntacct/ExportForIntacct.sql

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
--roles=Finance
22
--class=TotalsByFund
33

4-
54
DECLARE @ProjectOfMonthFund AS int;
65
DECLARE @RegistrationIncomeFund AS int;
76

@@ -69,7 +68,6 @@ FROM Contribution AS c
6968
LEFT JOIN BundleHeader AS bh on bd.BundleHeaderId = bh.BundleHeaderId
7069
LEFT JOIN lookup.BundleHeaderTypes AS bht on bht.Id = bh.BundleHeaderTypeId
7170
WHERE c.FundId <> @ProjectOfMonthFund
72-
AND c.PeopleId = 33643
7371
AND c.ContributionTypeId = 99
7472
AND c.ContributionDate >= @StartDate AND c.ContributionDate < dateadd(day, 1, @EndDate)
7573
AND (bh.BundleStatusId = 0 OR c.ContributionTypeId = 6 OR c.ContributionStatusId = 2)
@@ -98,7 +96,6 @@ FROM Contribution AS c
9896
LEFT JOIN BundleHeader AS bh on bd.BundleHeaderId = bh.BundleHeaderId
9997
LEFT JOIN lookup.BundleHeaderTypes AS bht on bht.Id = bh.BundleHeaderTypeId
10098
WHERE c.FundId = @ProjectOfMonthFund
101-
AND c.PeopleId = 33643
10299
AND c.ContributionDate >= @StartDate AND c.ContributionDate < dateadd(day, 1, @EndDate)
103100
AND bh.BundleStatusId = 0
104101
GROUP BY

0 commit comments

Comments
 (0)