Tom Christian Posted February 19, 2015 Posted February 19, 2015 I'm creating a code hook that extends the \IPS\nexus\Invoice class and save() method. Once the invoice is set to paid, I'm running some custom code. At this point, I'd also like to create a transaction log to appear within the nice little "Transaction History" block. Is this possible? public function save() { if ( $this->status == \IPS\nexus\Invoice::STATUS_PAID) { // create log here } return call_user_func_array( 'parent::save', func_get_args() ); }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.