pening query
This commit is contained in:
@@ -38,14 +38,9 @@ class BkoReports extends BaseController
|
|||||||
|
|
||||||
public function pendingApplication() :ResponseInterface
|
public function pendingApplication() :ResponseInterface
|
||||||
{
|
{
|
||||||
|
$pendingQuery = $this->applicationQuery(1);
|
||||||
//SELECT uid,loan_amount,payment_month,sales_agent,gender,marital_status,email,address,state,country,status,added,updated FROM applications;
|
//SELECT uid,loan_amount,payment_month,sales_agent,gender,marital_status,email,address,state,country,status,added,updated FROM applications;
|
||||||
$query = $this->db->query("SELECT c.firstname, c.lastname, a.uid,a.loan_amount,
|
$query = $this->db->query("$pendingQuery ");
|
||||||
a.payment_month,a.sales_agent,a.gender,
|
|
||||||
a.marital_status,a.email,a.address,
|
|
||||||
a.state,a.country,a.status,a.added,
|
|
||||||
a.updated
|
|
||||||
FROM applications a
|
|
||||||
LEFT JOIN customers c ON c.uid = a.customer_uid WHERE a.status = 1 ");
|
|
||||||
$row = $query->getResult('array');
|
$row = $query->getResult('array');
|
||||||
$data = [
|
$data = [
|
||||||
'call_return' => '100',
|
'call_return' => '100',
|
||||||
|
|||||||
Reference in New Issue
Block a user