I need to Create a plugin to be trigger on record post-creation and post-update in the (Custom)crowdfundingcampaignsupport entity. The plugin should aggregate all donations within the context of the Campaign (ff_campaign) field. (User the Campaign of the record in context). Aggregate fields ff_amountcharged and ff_totalamount. it has to update in another customentity ff_campaign entity and update the following fields: ff_campaignfundsdepositedonstriped = SUM(ff_amount_charged) ff_campaignfundsraised = SUM(ff_totalamount)
↧