GLA Replace Event
The GLA Replace Events can be triggered using Custom Logic. When a GLA is replaced a prompt gives Users the option to select Effective Today or Date To Last Billed. Both options can be generated using Custom Logic. The following parameters are Required to execute each Event.
Effective Today
Effective Today
/** * Event: GLA Replacement requested * Listener Class: Application_Model_Gla_Gla * Listener Method: eventReplaceGla */ PCR_Event::attachDb( "replace-gla", ["Application_Model_Gla_Gla" => "eventReplaceGla"] ); PCR_Event::trigger( "replace-gla", [ "contact" => "12345", //RecID of Contact that initiated the GLA replace "users_recid" => "456", //RecID of User associated with Contact that initiated the GLA replacement "glaRecid" => [1111], //RecID of User associated with Contact that initiated the GLA replacement "replaceGlaRecid" => "2222", //RecID of Contact that initiated the GLA replace "effective" => "today", //Effective Date for Charge Updates "setInactiveGla" => true, "comment" => "This is a comment", "eventBroadcastBy" => "12345", "eventBroadcastTime" => "Sep 30, 2022, 11:23 am", "eventBroadcastDayofWeek" => "5", "eventBroadcastHourMin" => "1123", ] );
Date to Last Billed
Date to Last Billed
/** * Event: GLA Replacement requested * Listener Class: Application_Model_Gla_Gla * Listener Method: eventReplaceGla */ PCR_Event::attachDb( "replace-gla", ["Application_Model_Gla_Gla" => "eventReplaceGla"] ); PCR_Event::trigger( "replace-gla", [ "contact" => "216121", //RecID of Contact that initiated the GLA replace "glaRecid" => [3], //RecID of GLA getting replaced "replaceGlaRecid" => [22], //RecID of the replacement GLA "effective" => "backdate", //Button Select when saving changes made "comment" => "This is a comment", "setInactiveGla" => true, "users_recid" => "1217", //RecID of User associated with Contact that initiated the GLA replacement "eventBroadcastBy" => "216121", "eventBroadcastTime" => "Sep 30, 2022, 11:34 am", "eventBroadcastDayofWeek" => "5", "eventBroadcastHourMin" => "1134", ] );
Help Desk Portal - Email: help@pcr.com - Phone: 616.259.9242