Details
-
Type: Improvement
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Incomplete
-
Affects Version/s: 4.6.2
-
Fix Version/s: Unscheduled
-
Component/s: CiviContribute
-
Labels:
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
Add created_id on the financial_trxn table. FK to civicrm_contact.id
- new installs
- modify schema on upgrade (existing rows will be NULL)
On insert of financial_trxn rows:
- If authenticated user: set created_id to current user's contact id
- if anonymous: set created_id to same value as contribution.contact_id
Add unit test to verify this behavior.
Adding this field will, among other things, allow CiviCRM to track who created and edited a transaction. This is typically done in an advanced donor management / CRM.