User Story:
As a finance manager,
I need the system to automatically subtract a sponsor's contribution amount from its associated event's gross revenue when the sponsor is no longer "Accepted" or tied to the event,
So that our financial records accurately reflect the current status of sponsor contributions and ensure that the event's gross revenue reports are precise and reliable for making informed decisions.
Acceptance Criteria:
- When the CAMPX__Status__c of a CAMPX__Sponsor__c changes from "Accepted" to "Cancelled" or "Pending" the associated CAMPX__Event__c's CAMPX__GrossRevenue__c field should no longer reflect the sponsor's CAMPX__ContributedAmount__c
- When the CAMPX__Event__c lookup of a CAMPX__Sponsor__c changes, the previously associated CAMPX__Event__c's CAMPX__GrossRevenue__c field should no longer reflect the sponsor's CAMPX__ContributedAmount__c