Page MenuHomePhabricator

Ensure new is_major_gift & gl code fields are fully and correctly populated
Open, Needs TriagePublic8 Estimated Story Points

Description

This field is used as part of the account code calculation - for non-major gift donations we use channel, for major gifts we use a major-gifts specific code. In theory there are 2 major gifts account codes - for restricted and unrestricted but I'm having trouble find examples of recent restricted gifts & the are probably not relevant to online donations.

There is also endowment - still getting more clarification on handling here (from Tiffany) but in theory a donation can be endowment AND major gifts & so the final accounting calculation takes into account the 3 fields

Event Timeline

Noting we also want to (at least in the long term) ensure we are setting is_major_gift for imports as well.

Eileenmcnaughton renamed this task from Ensure new is_major_gift field is fully and correctly populated to Ensure new is_major_gift & gl code fields are fully and correctly populated.Mar 24 2026, 9:55 PM

Change #1260127 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Start populating new gl_code field

https://gerrit.wikimedia.org/r/1260127

@MDemosWMF Are you importing any Major Gifts donations & setting the Fund to 'endowment' & if so can we assume that ALL the donations you import with the Fund set to endowment are Major gifts - endowment should probably never have gone in the fund field since Analytics ignores it and it means we can't identify 'Endowment Major Gifts' - so just trying to figure out how to identify donations that are both endowment and major gifts based on the Gift Data

Change #1260161 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Populate is_major_gift, channel, gl_code in import hook

https://gerrit.wikimedia.org/r/1260161

I mapped the use of the 'Fund' field against what we actually use to track Endowment - could do with some clean up
https://docs.google.com/spreadsheets/d/1Low7ytCMYerNeeeLERIKtMIHHPUGG01t6PJenE-kVug/edit?usp=sharing

Change #1260197 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Cede defeat - subsequentRecurrings are not major gifts

https://gerrit.wikimedia.org/r/1260197

Change #1260198 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Fix is_major_gift for subsequent recurrings

https://gerrit.wikimedia.org/r/1260198

Change #1260304 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Update is_major_gift based on utm_medium

https://gerrit.wikimedia.org/r/1260304

Change #1260561 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Treat all 'civi_mail%' utm_source as channel email

https://gerrit.wikimedia.org/r/1260561

Change #1260562 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Update is_major_gift where utm_source like ~MG

https://gerrit.wikimedia.org/r/1260562

Change #1260197 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Cede defeat - subsequentRecurrings are not major gifts

https://gerrit.wikimedia.org/r/1260197

Change #1260198 merged by Eileen:

[wikimedia/fundraising/crm@master] Fix is_major_gift for subsequent recurrings

https://gerrit.wikimedia.org/r/1260198

Change #1260304 merged by Eileen:

[wikimedia/fundraising/crm@master] Update is_major_gift based on utm_medium

https://gerrit.wikimedia.org/r/1260304

@Eileenmcnaughton I am not sure exactly how its all allocated, maybe Erica has more insight. But on our end we differentiate between Endowment and Major gifts in our coding. So if the gift has been allocated by the donor to go to END or it is a QCD (gift type = retirement fund) or legacy gift (gift type = realized bequest) then the financial type = Endowment Gift and the Fund = Endowment Fund.

Change #1260561 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Treat all 'civi_mail%' utm_source as channel email

https://gerrit.wikimedia.org/r/1260561

Change #1264797 had a related patch set uploaded (by Eileen; author: Eileen):

[wikimedia/fundraising/crm@master] Set channel = Other Online For remaining online gifts

https://gerrit.wikimedia.org/r/1264797

Change #1264797 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Set channel = Other Online For remaining online gifts

https://gerrit.wikimedia.org/r/1264797

Change #1260161 merged by jenkins-bot:

[wikimedia/fundraising/crm@master] Set is_major_gift to true for imports

https://gerrit.wikimedia.org/r/1260161

Damilare set the point value for this task to 8.Mon, Jul 20, 9:26 PM

@Eileenmcnaughton - with Joseph out on parental leave early, is there someone else we should talk with about this?

How exciting!

Hawa is working on it