Skip to content

Commit

Permalink
CIWEMB-480: Update contribution status on allocation reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
olayiwola-compucorp committed Sep 5, 2023
1 parent d9240d9 commit 4544cfe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CRM/Financeextras/BAO/CreditNoteAllocation.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public static function reverseWithAccountingEntries(int $id) {
];
self::createPayment($account, $params);

if (!empty($allocation['contribution_id'])) {
\Civi::dispatcher()->dispatch(ContributionPaymentUpdatedEvent::NAME, new ContributionPaymentUpdatedEvent($allocation['contribution_id']));
}

return $allocation;
}

Expand Down

0 comments on commit 4544cfe

Please sign in to comment.