/** * Status change handler: "Requires Authorization" to "Approved" * * @return boolean */ protected function handleStatusChangeApprove() { $result = false; if ($this->canBeApproved()) { $result = $this->callApiCreateAuthorizedReturn(); if ($result) { // Send email notification \XLite\Core\Mailer::sendProductsReturnApproved($this); } $result = true; } return $result; }