Versions Compared

Key

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

...

Code Block
languagephp
titleBill Approve
linenumberstrue
/**
* Event: Approve Bill 
* Listener Class: Application_Model_Bill_Bill
* Listener Method: eventApprove
*/


{PCR_Event::attachDb(
    "approve-bill",
    ["Application_Model_Bill_Bill" => "eventApprove "]
);
PCR_Event::trigger(
    "approve-bill",

[
    "BILLS_RECID":"443", 		// RecID of Bill being approved
    "INVOICE_DATE":"09\/30\/2022",

    "eventBroadcastBy":"216121",
    "eventBroadcastTime":"Sep 30, 2022, 10:26 am",
    "eventBroadcastDayofWeek":"5",
    "eventBroadcastHourMin":"1026",

}]
);