Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Bill Generate Event can be triggered using Custom Logic. The following parameters are Required to execute the Event.

Bill Generate
Code Block
languagephp
titleBill Generate
linenumberstrue
/**
* Event: Generate Bill
* Listener Class: Application_Model_Bill_BillDetails
* Listener Method: eventGenerateBill
*/

PCR_Event::attachDb(
    "generate-bill",
    ["Application_Model_Bill_BillDetails" => "eventGenerateBill"]
);
PCR_Event::trigger(
    "generate-bill",
	 [
		"start_date" => "2022-11-01 00:00:00",
		"end_date" => "11/30/2022",
		"next_run_date" => null,
		"test_bill" => "0",
		"RECID" => "addNew",
		"contact" => "216121", //RecID of Contact that initiated the Event
		"LISTENER_FAIL_METHOD" => "eventBillFailed",

		"eventBroadcastBy" => "216121",
		"eventBroadcastTime" => "Oct 6, 2022, 11:44 am",
		"eventBroadcastDayofWeek" => "4",
		"eventBroadcastHourMin" => "1144",
	] 
);

...