diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php index c75163ff..82648dc4 100644 --- a/api/application/controllers/PD_Controller.php +++ b/api/application/controllers/PD_Controller.php @@ -4620,7 +4620,7 @@ class PD_Controller extends REST_Controller { $pdid = $records['pd_id']; $pd_master_details = $this->PD_Model->getPDMasterDetails($pdid); - //print_r($pd_master_details); + if($pd_master_details[0]['fk_subproduct_id'] != "" || $pd_master_details[0]['fk_subproduct_id'] != null) { diff --git a/api/application/docs/sample.pdf b/api/application/docs/sample.pdf index c76e781d..a8da6c86 100644 Binary files a/api/application/docs/sample.pdf and b/api/application/docs/sample.pdf differ diff --git a/api/application/views/report_templates/JSONTOREPORT.php b/api/application/views/report_templates/JSONTOREPORT.php index 6bd92373..440aa300 100644 --- a/api/application/views/report_templates/JSONTOREPORT.php +++ b/api/application/views/report_templates/JSONTOREPORT.php @@ -6,30 +6,15 @@ defined('BASEPATH') OR exit('No direct script access allowed'); - - + - +







"; setlocale(LC_MONETARY, 'en_IN'); - echo "
"; - echo "

PERSONAL DISCUSSION REPORT

"; + echo "
"; + echo "

PERSONAL DISCUSSION REPORT

"; echo "
for the case of
"; - echo "

".$pd_master_details[0]['title_name'].$pd_master_details[0]['main_applicant']."

"; + echo "

".$pd_master_details[0]['title_name'].$pd_master_details[0]['main_applicant']."

"; echo "
"; echo "



"; ?> "; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; + echo ""; echo ""; echo ""; ?> @@ -185,7 +170,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');

Loan Applicants

-
PD Report Date ".$pd_master_details[0]['updatedon']."
PD Vist Date ".$pd_master_details[0]['scheduled_on']."
PD Initiated by ".$pd_master_details[0]['branch_name']." Branch
Loan Applicant ID ".$pd_master_details[0]['lender_applicant_id']."
PD Report Date ".$pd_master_details[0]['updatedon']."
PD Vist Date ".$pd_master_details[0]['scheduled_on']."
PD Initiated by ".$pd_master_details[0]['branch_name']." Branch
Loan Applicant ID ".$pd_master_details[0]['lender_applicant_id']."
Product ".$pd_master_details[0]['product_name']."
Customer Segment ".$pd_master_details[0]['customer_segment_name']."
+
$individual) @@ -252,7 +237,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');

Loan Details :

- A loan for Rs ".number_format($loan_form['loan_amount'])." (".MYUITIL::numtowords($loan_form['loan_amount']).") has been applied by the applicant for ".$loan_form['end_use_master'][0]."."; if($loan_form['is_transfer'] == 'yes') { echo "There is a balance transfer of Rs. ".number_format($loan_form['balance_transfer_amount'])." (".MYUITIL::numtowords($loan_form['balance_transfer_amount']).")from ".$loan_form['lender_master']."),and the balance top up of Rs.".$loan_form['topup_amount']." is to be used for ".$loan_form['end_use_topup_master'].". The applicants are comfortable to pay an EMI of Rs.".number_format($loan_form['emi_level'])." per month."; @@ -287,7 +272,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); //echo "#################".strripos($owners_list,','); $owners_list = substr_replace($owners_list," and ",strripos($owners_list,','),1); - echo "The property being mortgaged is a ".$loan_form['property_type_master']." owned by ".$owners_list.", and is ".$loan_form['construction_status_master']." with an estimated market value of Rs ".number_format($loan_form['emv_per_customer'])."(".MYUITIL::numtowords($loan_form['emv_per_customer']).")"; + echo "The property being mortgaged is a ".$loan_form['property_type_master']." owned by ".$owners_list.", and is ".$loan_form['construction_status_master']." with an estimated market value of Rs ".number_format($loan_form['emv_per_customer'])."(".MYUITIL::numtowords($loan_form['emv_per_customer']).")

"; ?>

PD Officer's Note (About Loan Details) :

diff --git a/api/application/views/report_templates/SALCASH.php b/api/application/views/report_templates/SALCASH.php index bed4a62d..70c6e961 100644 --- a/api/application/views/report_templates/SALCASH.php +++ b/api/application/views/report_templates/SALCASH.php @@ -2,148 +2,24 @@ defined('BASEPATH') OR exit('No direct script access allowed'); ?> - + - - <?php echo $pdid; ?> - - - + -
-

PD Report ID:-

- -
-

Main Applicant Name:

- -

Customer Segment:

- Lender: - -

Product :-

- Sub Product: - -

Business Info - Type Of Activity

-

Manufacturing Products

Retails Products

Service Providers

-
-

Co Applicants List

- -
- - - - - - - - - - - - - - - - - - - - -
CompanyContactRelationEaring StatusCompany NameAge Eligibilty
60){ echo "NA";}?>
-
- - - +

Sofia

+

Lorem ipsum dolor sit amet, consectetuer adipiscing elit.

+

123456790

+

ABCDEFGHIJKLMNOPQRSTUVWXYZ

+

abcdefghijklmnopqrstuvwxyz

- \ No newline at end of file +