From ac6653e2c060e41b8bcf5cf7743e4933ba1b1009 Mon Sep 17 00:00:00 2001 From: Gowtham M Date: Sat, 21 Dec 2024 09:16:00 +0530 Subject: [PATCH] File upload in loan : GWM --- app/Controllers/Emppaydate.php | 4 +++- app/Models/Emppaydate_model.php | 7 +++++++ app/Views/editOldemppay.php | 36 +++++++++++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 1 deletion(-) diff --git a/app/Controllers/Emppaydate.php b/app/Controllers/Emppaydate.php index cb945bf5..fa8bc2cb 100755 --- a/app/Controllers/Emppaydate.php +++ b/app/Controllers/Emppaydate.php @@ -139,8 +139,10 @@ class Emppaydate extends BaseController { $data['emppay'] = $this->emppaydate_model->getUserInfo($paydataid); + + $data['loan_histoty'] = $this->emppaydate_model->getUserLoanHistoryInfo($data['emppay'][0]->Loan_ID); - // print_r($data);die; + // print_r($data['loan_histoty']);die; $this->global['pageTitle'] = 'Edit Employee Pay Monthly Details '; diff --git a/app/Models/Emppaydate_model.php b/app/Models/Emppaydate_model.php index 5d65ce5b..3a185c4d 100755 --- a/app/Models/Emppaydate_model.php +++ b/app/Models/Emppaydate_model.php @@ -76,6 +76,13 @@ class Emppaydate_model extends Model return $query->getResult(); } + function getUserLoanHistoryInfo($loan_id) + { + $sql = 'select * from t_loan_history where Loan_ID = ?;'; + $query = $this->db->query($sql, array($loan_id)); + + return $query->getResult(); + } function getEmpPayData($EmpID) { diff --git a/app/Views/editOldemppay.php b/app/Views/editOldemppay.php index 97a74a0a..857d5d2a 100755 --- a/app/Views/editOldemppay.php +++ b/app/Views/editOldemppay.php @@ -292,6 +292,36 @@ if (!empty($emppay)) { +
+

Loan History

+ + + + + + + + + + + + + + + + + + + + + + + +
Due AmountBalance Amount Debit Date
Due_Amount, 2); ?>Balance_Amount, 2); ?>Entry_Date); echo $entryDate->format('F j, Y, g:i A'); ?>
No Loan History Found
+
+ + +
@@ -341,6 +371,12 @@ if (!empty($emppay)) {
+ + + + + +