HandleWhatsAppClick
Function: handleWhatsAppClick()
[object Object]
Defined in: app/routes/admin/finances/finances.handlers.tsx:139
Generates a WhatsApp message and opens a chat window to remind a member of their debts.
Logic:
- Filters for activities past their payment deadline.
- Scales the "severity" of the language based on how many days overdue the oldest debt is.
- Uses the member's
preferredLanguage(NL/EN) for the message body. - Formats phone numbers to the international Dutch format (31).
Parameters
args
enrollments
The member's specific outstanding enrollments.
member
The member to message.
Returns
[object Object]