Further deconstruction of updateFinancialAccounts
authoreileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 23:08:01 +0000 (12:08 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 27 Oct 2019 23:08:01 +0000 (12:08 +1300)
commitf8cd7ee2893f061b8912b74cad61f855d27e2120
treec6866a742ec901e4bdf7826967fd46e1b01ff896
parent9f953822e50c2733e5acb7280b6d5e655fa4dd40
Further deconstruction of updateFinancialAccounts

updateFinancialAccounts is only called from one place with the context of 'changedStatus'. When called this
way the function updateFinancialAccountsOnContributionStatusChange is called & that 'tells'
the calling function whether to call the rest of this function.

Since this handling is specific to one place from which the function is called we can move that logic
back to the place that calls it & further simplify the updateFinancialAccounts function
which has been a bit of a haven of chaos
CRM/Contribute/BAO/Contribution.php