Fix donation-assignment admin email reading as a real payment
The internal admin notice for applying a donation to a registration reused buildPaymentAdminNotice as-is, so it read "Payment recorded" / "Registration payment" — indistinguishable from an actual incoming payment even though no new money changed hands. Adds a dedicated buildDonationAssignmentAdminNotice wrapper (mirroring the one already added for unassignment) so the subject, heading, and Type field all say "Donation applied" instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,10 @@ and this project follows [Semantic Versioning](https://semver.org/).
|
||||
|
||||
- Supervisors can now unassign a donation that was previously applied to a registration, from a new "Assigned donations" list on the Payments page. This reverses the allocation (the registration's balance goes back up and the donation becomes available again), reverting the registration's status and revoking any tickets issued only because that allocation completed payment — blocked if a ticket has already been scanned. The registrant is notified by email/WhatsApp, mirroring the notification sent when a donation is first applied.
|
||||
|
||||
### Fixed
|
||||
|
||||
- The internal admin notification for a donation applied to a registration read "Payment recorded" / "Registration payment", indistinguishable from a real incoming payment even though no new money changed hands — it now says "Donation applied" throughout, matching the registrant-facing email's distinct wording.
|
||||
|
||||
### Performance
|
||||
|
||||
- Reconciling a Yoco card payment or sending a payment link on the supervisor Payments page no longer blocks the response on ticket-PDF generation and email/WhatsApp sends — these now run in the background, matching how manual payments already worked.
|
||||
|
||||
Reference in New Issue
Block a user