Offer hiooks added

This commit is contained in:
CHIEFSOFT\ameye
2025-01-13 20:52:30 -05:00
parent fe8a3a9a2a
commit f457d75ded
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -155,6 +155,8 @@ disbursement
}
$addedData = $this->insert_db('applications', $udata);
log_message('error', "addedData Call UID ---=> ". $addedData["uid"] );
if ( isset($addedData["uid"])){
try {
$application_uid = $addedData["uid"];
@@ -199,6 +201,16 @@ disbursement
return $this->respond([], 200);
}
public function loanOffer(){
$data = $this->request->getPost();
$mysql ="SELECT * FROM applications WHERE uid='". $data["application_uid"]."' ";
$query = $this->db->query($mysql);
$row = $query->getRowArray();
log_message('error', "Send Offer Application ". $data["application_uid"] );
return $this->respond(["loan"=>$row], 200);
}
public function loanDetail(){