debugging
This commit is contained in:
@@ -27,6 +27,7 @@ class Employers extends BaseController
|
||||
|
||||
private function pickSignatory($employer_uid):array{
|
||||
$signatoryQRy = "SELECT s.* FROM employers_signatory s LEFT JOIN employers e ON e.id =s.employer_id AND e.uid ='$employer_uid' ORDER BY s.id ASC LIMIT 1";
|
||||
log_message('error', "pickSignatory---=>" . $signatoryQRy);
|
||||
$query = $this->db->query($signatoryQRy);
|
||||
$row = $query->getResult('array');
|
||||
return $row[0];
|
||||
@@ -47,7 +48,7 @@ class Employers extends BaseController
|
||||
if ($data['application_uid'] != '') {
|
||||
|
||||
$findEmp ="SELECT c.firstname,c.lastname,a.uid AS application_uid, a.* from applications a LEFT JOIN customers c ON c.uid =a.customer_uid WHERE a.status =2 AND a.uid = '".trim($data['application_uid'])."'";
|
||||
log_message('error', "findEmp---=>" . $findEmp);
|
||||
// log_message('error', "findEmp---=>" . $findEmp);
|
||||
|
||||
$query = $this->db->query($findEmp);
|
||||
$row = $query->getResult('array');
|
||||
@@ -57,7 +58,7 @@ class Employers extends BaseController
|
||||
$sigNatory = $this->pickSignatory($employer_uid);
|
||||
|
||||
$to_number = $sigNatory["phone"]; // "2347032847884"; // "16784574345"; //
|
||||
|
||||
|
||||
if ($row[0]['uid']!='' && $application_uid !='' ){
|
||||
$this->moveChecksToZero($application_uid); // all previous login is to employer verification is invalid invalid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user