Users process loan

This commit is contained in:
CHIEFSOFT\ameye
2024-08-04 23:03:28 -04:00
parent 5e7ae002ae
commit 2f58bd3609
2 changed files with 17 additions and 1 deletions
+9 -1
View File
@@ -23,10 +23,18 @@ class Users extends BaseController
$query = $this->db->query("SELECT * FROM customers WHERE uid = '".$in['uid']."' ");
$row = $query->getRowArray();
$loanResult = $this->userLoan($in['uid']);
$processLoan = [];
foreach ($loanResult as $value) {
$processLoan[] = $value;
}
$data = [
'call_return' => '100',
'customer' => $row,
'loans' => $this->userLoan($in['uid'])
'loans' => $loanResult,
'lln' => $processLoan
];
return $this->respond($data, 200);
}