+
Yes
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts
index f06081857..de775335d 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/business-info/business-info.component.ts
@@ -103,6 +103,7 @@ export class BusinessInfoComponent implements OnInit {
temp_additiondetailofposmachine: any = [];
image_doc_params: { pdid: number; form_id: number; company_id: String; };
@ViewChild('business_activity_type') business_activity_type_scroll : ElementRef
+ prod_catagory: any;
constructor(notifier: NotifierService,
@@ -133,6 +134,7 @@ export class BusinessInfoComponent implements OnInit {
console.log(this.lender_short_name);
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
console.log(this.product_abbr);
+ this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
console.log("com",this.company_id)
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:this.company_id}
this.getActivity();
@@ -396,15 +398,15 @@ export class BusinessInfoComponent implements OnInit {
});
if (selectedRetail.length > 0) {
selectedRetail.length > 0 ? this.businessForm.addControl('export_import_cert', new FormControl('', Validators.required)) : this.businessForm.removeControl('export_import_cert');
- if( !(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
- console.log('###PAY');console.log(this.lender_short_name,this.product_abbr)
+ if( !(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
+ console.log('###PAY');console.log(this.lender_short_name,this.prod_catagory)
selectedRetail.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl('')) : this.businessForm.removeControl('applicant_use_mobile_wallets');
selectedRetail.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl('')) : this.businessForm.removeControl('applicant_use_pos_machines');
selectedRetail.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('no_of_pos_machines', new FormControl('')) : this.businessForm.removeControl('no_of_pos_machines');
selectedRetail.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('pos_machines_details', this.fb.array([])) : this.businessForm.removeControl('pos_machines_details');
}
else{
- console.log('###ELSE');console.log(this.lender_short_name,this.product_abbr)
+ console.log('###ELSE');console.log(this.lender_short_name,this.prod_catagory)
}
selectedRetail.forEach((element, index) => {
@@ -467,7 +469,7 @@ export class BusinessInfoComponent implements OnInit {
});
if (selectedWholesale.length > 0) {
selectedWholesale.length > 0 ? this.businessForm.addControl('export_import_cert', new FormControl('', Validators.required)) : this.businessForm.removeControl('export_import_cert');
- if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
+ if(!(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
selectedWholesale.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl('')) : this.businessForm.removeControl('applicant_use_mobile_wallets');
selectedWholesale.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl('')) : this.businessForm.removeControl('applicant_use_pos_machines');
selectedWholesale.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('no_of_pos_machines', new FormControl('')) : this.businessForm.removeControl('no_of_pos_machines');
@@ -536,7 +538,7 @@ export class BusinessInfoComponent implements OnInit {
});
if (selectedService.length > 0) {
selectedService.length > 0 ? this.businessForm.addControl('practice_cert', new FormControl('', Validators.required)) : this.businessForm.removeControl('practice_cert');
- if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
+ if(!(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
selectedService.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl('')) : this.businessForm.removeControl('applicant_use_mobile_wallets');
selectedService.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl('')) : this.businessForm.removeControl('applicant_use_pos_machines');
selectedService.length > 0 && businessVal.applicant_use_pos_machines == 'yes' ? this.businessForm.addControl('no_of_pos_machines', new FormControl('')) : this.businessForm.removeControl('no_of_pos_machines');
@@ -627,7 +629,7 @@ export class BusinessInfoComponent implements OnInit {
}
}
// this.businessForm.setValue(businessVal);
- // this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
+ // this.lender_short_name == 'CLIX' || this.prod_catagory == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
if(data.records.gst_Regn_cert =='yes'){ this.businessForm.addControl('gst_Regn_cert_pic', new FormControl('')); }else{ this.businessForm.removeControl('gst_Regn_cert_pic');}
if(data.records.factory_cert =='yes'){ this.businessForm.addControl('factory_cert_pic', new FormControl('')); }else{ this.businessForm.removeControl('factory_cert_pic');}
if(data.records.practice_cert =='yes'){ this.businessForm.addControl('practice_cert_pic', new FormControl('')); }else{ this.businessForm.removeControl('practice_cert_pic');}
@@ -661,7 +663,7 @@ export class BusinessInfoComponent implements OnInit {
// load exist company list from master
// this.existCompanyList = this.pd_all_details.pdapplicants_detials.filter(item=>item.company_name!=null).map(mapItem=>mapItem.company_name);
- this.product_abbr == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
+ this.prod_catagory == 'LAEP' ? this.businessForm.addControl('fire_noc', new FormControl('', Validators.required)) : this.businessForm.removeControl('fire_noc');
if(this.lender_short_name != 'CLIX'){
// change relation with businees update dat sorce table
@@ -806,11 +808,11 @@ export class BusinessInfoComponent implements OnInit {
this.businessForm.value.service_provider_activity_details.length > 0 ? this.businessForm.addControl('practice_cert', new FormControl(this.businessForm.value.practice_cert, Validators.required)) : this.businessForm.removeControl('practice_cert');
// check activity for extra question make dynamic
- if(!(this.lender_short_name == 'CLIX' && this.product_abbr == 'BL') && !(this.lender_short_name == 'MWISE' && this.product_abbr == 'BL')){
+ if(!(this.lender_short_name == 'CLIX' && this.prod_catagory == 'BL') && !(this.lender_short_name == 'MWISE' && this.prod_catagory == 'BL')){
this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0 ? this.businessForm.addControl('applicant_use_mobile_wallets', new FormControl(this.businessForm.value.applicant_use_mobile_wallets)) : this.businessForm.removeControl('applicant_use_mobile_wallets');
this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0 ? this.businessForm.addControl('applicant_use_pos_machines', new FormControl(this.businessForm.value.applicant_use_pos_machines)) : this.businessForm.removeControl('applicant_use_pos_machines');
if (this.businessForm.value.service_provider_activity_details.length > 0 || this.businessForm.value.retail_trading_activity_details.length > 0 || this.businessForm.value.wholesale_trading_activity_details.length > 0) {
- if(this.businessForm.controls['applicant_use_pos_machines'] && this.product_abbr == 'LAEP'){
+ if(this.businessForm.controls['applicant_use_pos_machines'] && this.prod_catagory == 'LAEP'){
this.businessForm.controls['applicant_use_pos_machines'].setValue('yes');
}
this.changePOSMachinesAvailablity(this.businessForm.value.applicant_use_pos_machines, 2);
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html
index ca3ec0070..a3e6d7ede 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.html
@@ -35,7 +35,7 @@
No
-
+
Select
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts
index 2dad8f960..4cf481e3a 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/current-loan/current-loan.component.ts
@@ -46,6 +46,7 @@ export class CurrentLoanComponent implements OnInit {
isOtherLoanTakenBy:any = [];
image_doc_params: { pdid: number; form_id: number; company_id: string; };
product_abbr: any;
+ prod_catagory: any;
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
private router: Router,
@@ -64,7 +65,8 @@ export class CurrentLoanComponent implements OnInit {
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:''}
- this.product_abbr=this.pd_all_details.pdmaster_details.product_abbr
+ this.product_abbr=this.pd_all_details.pdmaster_details.product_abbr;
+ this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
}
pdf(fileURL){
window.open(fileURL);
@@ -430,7 +432,7 @@ export class CurrentLoanComponent implements OnInit {
public initCurrentloanForm(): void {
this.currentLoanForm = this.fb.group({
existing_loan: [''],
- loan_info_available:[this.product_abbr == 'BL' || this.product_abbr == 'LAEP' ? '' : 'Yes'],
+ loan_info_available:[this.prod_catagory == 'BL' || this.prod_catagory == 'LAEP' ? '' : 'Yes'],
currentloan_remarks: [''],
loan_details: this.fb.array([]),
});
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html
index 74b487329..352104970 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.html
@@ -139,7 +139,7 @@
-->
-
+
@@ -278,7 +278,7 @@
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
index a1056220a..e8902ae60 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/family-details/family-details.component.ts
@@ -69,6 +69,7 @@ export class FamilyDetailsComponent implements OnInit {
pincodeDataList: any = [];
product_abbr: any;
addressList: any = [];
+ prod_catagory: any;
/** constructor Of the class */
constructor(notifier: NotifierService, private fb: FormBuilder, private route: ActivatedRoute,
@@ -84,6 +85,7 @@ export class FamilyDetailsComponent implements OnInit {
this.parent_pdid = this.pd_all_details.pdmaster_details.parent_pd_id;
this.lender_short_name=this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
+ this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html
index f42d6df83..337dd5a9f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.html
@@ -156,11 +156,11 @@
Specify the Mode of Transport Used to Visit the PD address Required
-
+
CLIX
MWISE
-
+
Select
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts
index 4d6351459..d49cc2676 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/final-remarks/final-remarks.component.ts
@@ -56,6 +56,7 @@ export class FinalRemarksComponent implements OnInit {
public documentsAndFilesList = [];
private notifier: NotifierService;
image_doc_params: { pdid: string; form_id: number; company_id: string; };
+ prod_catagory: any;
constructor(
notifier: NotifierService,
@@ -75,6 +76,7 @@ export class FinalRemarksComponent implements OnInit {
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
+ this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this._finalRemarkForm = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
@@ -104,8 +106,8 @@ export class FinalRemarksComponent implements OnInit {
final_form_remarks: ['']
});
- if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.product_abbr == 'LAEP'){
- this.product_abbr == 'LAEP' ? this._finalRemarkForm.addControl('outlet_location', new FormControl('', Validators.required)) : this._finalRemarkForm.removeControl('outlet_location');
+ if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP'){
+ this.prod_catagory == 'LAEP' ? this._finalRemarkForm.addControl('outlet_location', new FormControl('', Validators.required)) : this._finalRemarkForm.removeControl('outlet_location');
this._finalRemarkForm.addControl('is_competition', new FormControl(''));
this._finalRemarkForm.addControl('sealing_activity', new FormControl(''));
this._finalRemarkForm.addControl('demolition_activity', new FormControl(''));
@@ -116,7 +118,7 @@ export class FinalRemarksComponent implements OnInit {
this._finalRemarkForm.removeControl('sealing_activity');
this._finalRemarkForm.removeControl('demolition_activity');
}
- // if(this.product_abbr != 'LAEP'){
+ // if(this.prod_catagory != 'LAEP'){
// this._finalRemarkForm.controls['final_form_remarks'].setValidators(Validators.compose([Validators.required]))
// }
// else{
@@ -244,9 +246,9 @@ export class FinalRemarksComponent implements OnInit {
this._finalRemarkForm.controls.market_intelligence.setValue(data.records.market_intelligence || '');
- if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.product_abbr == 'LAEP'){
+ if(this.lender_short_name == 'CLIX' || this.lender_short_name == 'MWISE' || this.prod_catagory == 'LAEP'){
- if(this.product_abbr == 'LAEP') {this._finalRemarkForm.controls.outlet_location.setValue(this.product_abbr == 'LAEP' ? data.records.outlet_location : ''); }
+ if(this.prod_catagory == 'LAEP') {this._finalRemarkForm.controls.outlet_location.setValue(this.prod_catagory == 'LAEP' ? data.records.outlet_location : ''); }
this._finalRemarkForm.controls.is_competition.setValue(data.records.is_competition);
this._finalRemarkForm.controls.sealing_activity.setValue(data.records.sealing_activity);
this._finalRemarkForm.controls.demolition_activity.setValue(data.records.demolition_activity);
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
index c5132d759..b452c903f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.html
@@ -477,7 +477,7 @@
formControlName="estimate_reason_for_loss">
-
+
{{"₹"}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
index 9c1cd75e0..f1c0c8d00 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/financial-info/financial-info.component.ts
@@ -84,6 +84,7 @@ export class FinancialInfoComponent implements OnInit {
// values = [0, 1, 2, 3];
documentsAndFilesList: any = [];
image_doc_params: { pdid: string; form_id: number; company_id: string; };
+ prod_catagory: any;
constructor(notifier: NotifierService,
private fb: FormBuilder,
@@ -103,6 +104,7 @@ export class FinancialInfoComponent implements OnInit {
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
+ this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
let x = this.customer_segment_abbr.split("-");
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/future-plans-and-business-environment/future-plans-and-business-environment.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/future-plans-and-business-environment/future-plans-and-business-environment.component.ts
index a8512f860..c829dd325 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/future-plans-and-business-environment/future-plans-and-business-environment.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/future-plans-and-business-environment/future-plans-and-business-environment.component.ts
@@ -54,6 +54,7 @@ export class FuturePlansAndBusinessEnvironmentComponent implements OnInit {
public documentsAndFilesList = [];
private notifier: NotifierService;
image_doc_params: { pdid: string; form_id: number; company_id: any; };
+ prod_catagory: any;
constructor(
notifier: NotifierService,
@@ -75,6 +76,7 @@ export class FuturePlansAndBusinessEnvironmentComponent implements OnInit {
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lender_short_name = this.pd_all_details.pdmaster_details.lender_short_name;
this.product_abbr = this.pd_all_details.pdmaster_details.product_abbr;
+ this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this._futurePlansForm = this._formBuilder.group({
parent_pdid: [this.parent_pdid],
@@ -89,7 +91,7 @@ export class FuturePlansAndBusinessEnvironmentComponent implements OnInit {
remarks: ['']
});
- if(this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP'){ }
+ if(this.lender_short_name == 'CLIX' || this.prod_catagory == 'LAEP'){ }
else{ }
this.image_doc_params={pdid:this.pdid,form_id:this.form_id,company_id:this.company_id}
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
index 703ef49ff..f41f6e3d1 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.html
@@ -58,7 +58,7 @@
End Use Required
-
+
Select
@@ -76,7 +76,7 @@
-
+
@@ -119,7 +119,7 @@
-
0 && (lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || productAbbr == 'LFMP')">
+ 0 && (lenderShortName != 'CLIX' && lenderShortName != 'MWISE' || prod_catagory == 'LFMP')">
Select
@@ -166,7 +166,7 @@
-
+
{{"₹"}} {{ loanDetailsForm.controls['emi_level'].value | numberToWords }} Only
@@ -175,7 +175,7 @@
-
+
Details of Property being Mortgaged
@@ -246,7 +246,7 @@
{{"₹"}} {{ loanDetailsForm.controls['emv_per_customer'].value | numberToWords }} Only
-
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts
index 6d3d8f6f7..3ba4e70a7 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/loan-details/loan-details.component.ts
@@ -94,6 +94,7 @@ export class LoanDetailsComponent implements OnInit {
address_placeholder: string;
image_doc_params: { pdid: number; form_id: number; company_id: string; };
addressList: any = [];
+ prod_catagory: any;
@@ -112,6 +113,7 @@ export class LoanDetailsComponent implements OnInit {
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)
// this.companies = this.pd_all_details.pdapplicants_detials.filter(appt=>appt.applicant_type == 2 )
this.productAbbr = this.pd_all_details.pdmaster_details.product_abbr;
+ this.prod_catagory = this.pd_all_details.pdmaster_details.prod_catagory;
this.productID = this.pd_all_details.pdmaster_details.fk_product_id;
this.subProductName = this.pd_all_details.pdmaster_details.subproduct_name;
this.exist_loan_amt = this.pd_all_details.pdmaster_details.loan_amount != '' ? this.pd_all_details.pdmaster_details.loan_amount : '';
@@ -126,10 +128,10 @@ export class LoanDetailsComponent implements OnInit {
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
this.lenderShortName = this.pd_all_details.pdmaster_details.lender_short_name;
- if (this.productAbbr == 'PL' || this.productAbbr == 'BL' || this.productAbbr == 'LAP' || this.productAbbr == 'LFMP') {
+ if (this.prod_catagory == 'PL' || this.prod_catagory == 'BL' || this.prod_catagory == 'LAP' || this.prod_catagory == 'LFMP') {
this.isContribution = true;
}
- if(this.productAbbr == 'HL' || this.productAbbr == 'NRPL' || this.productAbbr == 'LL'){
+ if(this.prod_catagory == 'HL' || this.prod_catagory == 'NRPL' || this.prod_catagory == 'LL'){
this.Owner_placeholder="Name of the proposed owner"
this.address_placeholder="Address of the proposed property"
}
@@ -183,7 +185,7 @@ export class LoanDetailsComponent implements OnInit {
// this.listOfLanguagues.splice(this.listOfLanguagues.indexOf(languague), 1);
}
- if (this.productAbbr != 'LAP') {
+ if (this.prod_catagory != 'LAP') {
this.mergeCompanyApplicant.push({ groupName: 'OTHERS', groupValues: [{ id: 0, name: 'Not Yet Finalised', group_id: 2 }] })
}
@@ -198,7 +200,7 @@ export class LoanDetailsComponent implements OnInit {
params.pd_id = this.pdid;
params.pd_form_id = this.form_id;
this._pd.retriveForm(params).subscribe(value => {
- // *ngIf="productAbbr === 'HL' || productAbbr === 'LL' || productAbbr === 'LAP' "
+ // *ngIf="prod_catagory === 'HL' || prod_catagory === 'LL' || prod_catagory === 'LAP' "
if (value.status == 200) {
let result = Object.keys(value.records.end_use_group).map(function (key) {
return value.records.end_use_group[key];
@@ -319,10 +321,10 @@ export class LoanDetailsComponent implements OnInit {
this.loanDetailsForm.controls['emv_per_customer'].setValue(value.records.emv_per_customer);
// this.emvAmtInWords = this._pd.convertNumberToWords(value.records.emv_per_customer);
}
- console.log("product abbr",this.productAbbr);
+ console.log("product abbr",this.prod_catagory);
console.log("value",value)
- this.loanDetailsForm.controls['property_seller'].setValue(this.productAbbr != 'LAP' ? value.records.property_seller || null : '');
+ this.loanDetailsForm.controls['property_seller'].setValue(this.prod_catagory != 'LAP' ? value.records.property_seller || null : '');
this.loanDetailsForm.controls['address'].setValue(value.records.address || null);
this.loanDetailsForm.controls['state'].setValue(value.records.state || null );
if(value.records.state != ''){this.getCityAndPincodeDetails(value.records.state);}
@@ -346,7 +348,7 @@ export class LoanDetailsComponent implements OnInit {
}
})
- if (this.productAbbr == 'BL' || this.productAbbr == 'PL' || this.productAbbr == 'LAEP') {
+ if (this.prod_catagory == 'BL' || this.prod_catagory == 'PL' || this.prod_catagory == 'LAEP') {
this.mortageCardAccess = false;
this.loanDetailsForm.controls['owner_name'].setValue('');
this.loanDetailsForm.controls['owner_name'].clearValidators();
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
index f2d0bdc25..f48d11150 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/stock/stock.component.html
@@ -46,7 +46,7 @@
Stock Required
-
+
@@ -141,7 +141,7 @@
-
+
-
+
-
+
-
+
data.records.template_forms[item]).filter(item=>item.isAnswerable===true);
this.lender_short_name = data.records.pdmaster_details.lender_short_name;
this.product_abbr = data.records.pdmaster_details.product_abbr;
+ this.prod_catagory = data.records.pdmaster_details.prod_catagory;
// this.categoryFormButtons = this.categoryFormButtons.filter(item=>item.isAnswerable===true);
this.actualQuestions = this.categoryFormButtons.length;
let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.isAnswered===true);
@@ -445,21 +447,22 @@ export class QcStartComponent implements OnInit, OnDestroy {
.subscribe(dataresult => {
this.loadTemplates(this.startPD,2,this.randomString);
});
- }else
- if((this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP') && this.selectedFormsCategory.form_id==23){
- const dialogRef = this.dialog.open(FuturePlansAndBusinessEnvironmentComponent, {
- data: this.pdFullDetails,
- maxWidth: '100vw',
- maxHeight: '100vh',
- height: '100%',
- width: '100%',
- disableClose: true
- });
- dialogRef.afterClosed()
- .subscribe(dataresult => {
- this.loadTemplates(this.startPD,2,this.randomString);
- });
}
+ // else
+ // if((this.lender_short_name == 'CLIX' || this.product_abbr == 'LAEP') && this.selectedFormsCategory.form_id==23){
+ // const dialogRef = this.dialog.open(FuturePlansAndBusinessEnvironmentComponent, {
+ // data: this.pdFullDetails,
+ // maxWidth: '100vw',
+ // maxHeight: '100vh',
+ // height: '100%',
+ // width: '100%',
+ // disableClose: true
+ // });
+ // dialogRef.afterClosed()
+ // .subscribe(dataresult => {
+ // this.loadTemplates(this.startPD,2,this.randomString);
+ // });
+ // }
else
if(this.selectedFormsCategory.form_id==24){
const dialogRef = this.dialog.open(QueriesDocsComponent, {
diff --git a/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html b/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html
index f7cfadd1b..eee013730 100644
--- a/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html
+++ b/ng6-seed/src/app/settings/entity/entity-edit/entity-other-preference/entity-other-preference.component.html
@@ -1,26 +1,45 @@