Open HarryPaulo opened 2 weeks ago
On this image we have a sample of event notify.
1 - Only send the message on 16h 2 - Look opportunities applying a custom filter and get the custom data object to send all whatsapp notification 3 - Use the phone number based on field: contact_mobile
This change aims to improve the way of creating events to trigger WhatsApp notifications.
Created a way to set a field on relative doctype on send a whatsapp message, for this was created a section called "Set Property After Alert"
Allow created more then one WhatsApp Notification with Notification Type "Event Schedule" for the same "Event Frequency" but with diferente propouse
Event method was ajusted to look for a list of events...
method "send_scheduled_message" was refactored to allow send template using for a Event Schedule
Every message sended try to add doc references "reference_doctype" and "reference_name" and create a whatsapp message
Refactored the creationg of "Scheduled Job Type" on insert or delete a "WhatsApp Notification"
Better text formating for fields parameters using "doc.get_formatted(field.field_name)"