Contact custom fields in WMF_Donor are currently calculated in an edit hook on Contributions. The calculations need to be based on the financial transaction tables. Does the hook also need to run on those tables?
|wikimedia/fundraising/crm : master||Update contribution_post hook to look at transaction totals|
|Open||None||T90630 Recurring Payments Reporting|
|Resolved||mepps||T97372 Enable ability to look up contacts by phone number|
|Resolved||None||T77910 [epic] Upgrade Civi to 4.6 & integrate new reporting|
|Resolved||None||T116416 [Epic] Followup tasks after Civi 4.6 upgrade|
|Resolved||Eileenmcnaughton||T116317 [Epic] CiviCRM upgrade: Adapt refund processing & reporting to reflect changes since the upgrade.|
|Resolved||Eileenmcnaughton||T124834 Fix WMF_donor rollup calculations to use financial transactions|
I added a patch to the post to fix the usd lifetime total - I think it's enough to call it from contribution post hook.
I'm on the fence about how to handle other fields in the set.
The fields are
Last USD amount
Donated in year x
Last original amount
It feels like we need to look back to the last contribution that stays completed (ignore refunds)