diff --git a/app/controllers/entity.applicant.controller.js b/app/controllers/entity.applicant.controller.js index 1c99ee5..f9bce50 100644 --- a/app/controllers/entity.applicant.controller.js +++ b/app/controllers/entity.applicant.controller.js @@ -1099,8 +1099,8 @@ exports.ApplicantPanList = async (req, res) => { LoanDetail.findAll({ where : { losid : req.query.losid , is_active : 1}}).then(data => { - sequelize.query(`SELECT loan_details.losid , applicants.pan_no AS pan , applicants.entity_type FROM loan_details JOIN applicants ON applicants.loan_no_id = '${data[0].id}' and applicants.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1; \ - SELECT loan_details.losid , entity_details.pan_no As pan , entity_details.entity_type FROM loan_details JOIN entity_details ON entity_details.loan_no_id = '${data[0].id}' and entity_details.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1`) + sequelize.query(`SELECT loan_details.losid , applicants.pan_no AS PAN , applicants.entity_type FROM loan_details JOIN applicants ON applicants.loan_no_id = '${data[0].id}' and applicants.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1; \ + SELECT loan_details.losid , entity_details.pan_no As PAN , entity_details.entity_type FROM loan_details JOIN entity_details ON entity_details.loan_no_id = '${data[0].id}' and entity_details.is_active = 1 where loan_details.id = '${data[0].id}' and loan_details.is_active = 1`) .then(data=> {