issues fixes : ps
This commit is contained in:
parent
71988caa06
commit
ef157b7e82
@ -66,7 +66,7 @@
|
|||||||
<input matInput placeholder="Name of Individual Applicant" formControlName="coapplicantName" type="text" required>
|
<input matInput placeholder="Name of Individual Applicant" formControlName="coapplicantName" type="text" required>
|
||||||
|
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field style="width: 40%">
|
<mat-form-field style="width: 40%" *ngIf="CSAbbr != 'SE-RI'">
|
||||||
<input matInput placeholder="Company / Firm Name" formControlName="company_name" type="text">
|
<input matInput placeholder="Company / Firm Name" formControlName="company_name" type="text">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
|
|||||||
@ -75,7 +75,7 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
existCompanyList: any = [];
|
existCompanyList: any = [];
|
||||||
companies: any = [];
|
companies: any = [];
|
||||||
typeofproperties:any = [];
|
typeofproperties:any = [];
|
||||||
|
generalFormApplicantList:any = [];
|
||||||
/** Constructor Of the Class */
|
/** Constructor Of the Class */
|
||||||
constructor(notifier: NotifierService,
|
constructor(notifier: NotifierService,
|
||||||
private fb: FormBuilder,
|
private fb: FormBuilder,
|
||||||
@ -84,7 +84,7 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
private _pd: PdTrigerService,
|
private _pd: PdTrigerService,
|
||||||
private dialogRef: MatDialogRef<LoanDetailsComponent>,
|
private dialogRef: MatDialogRef<LoanDetailsComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
|
||||||
|
console.log('this.pd_all_details.pdapplicants_detials',this.pd_all_details.pdapplicants_detials);
|
||||||
this.applicants = this.pd_all_details.pdapplicants_detials;
|
this.applicants = this.pd_all_details.pdapplicants_detials;
|
||||||
// this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
// this.applicants.push({'pd_co_applicant_id':'0','applicant_name':'Others'});
|
||||||
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)
|
this.applicants = this.applicants.filter(appt => appt.applicant_type != 2)
|
||||||
@ -118,6 +118,11 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
this.getM_BTLenderList();
|
this.getM_BTLenderList();
|
||||||
this.getM_EndUseofTopUpList();
|
this.getM_EndUseofTopUpList();
|
||||||
|
|
||||||
|
// note : Details of Property being Mortgaged section, In Name of the owner drop down list currently show all names (Applicants & In Person Met) need to change show Applicant names only.
|
||||||
|
let param: any = {};
|
||||||
|
param.pd_id = this.pdid;
|
||||||
|
param.pd_form_id = '18';
|
||||||
|
|
||||||
this._pd.getCompaniesListsForBusiness(this.pdid).subscribe(data => {
|
this._pd.getCompaniesListsForBusiness(this.pdid).subscribe(data => {
|
||||||
if (data.dataStatus) {
|
if (data.dataStatus) {
|
||||||
this.existCompanyList = data.records.filter(val => val.is_active === true && val.is_company_applicant === true);
|
this.existCompanyList = data.records.filter(val => val.is_active === true && val.is_company_applicant === true);
|
||||||
@ -130,18 +135,28 @@ export class LoanDetailsComponent implements OnInit {
|
|||||||
this.mergeCompanyApplicant.push({ groupName: 'COMPANIES', groupValues: modifyCompanyList })
|
this.mergeCompanyApplicant.push({ groupName: 'COMPANIES', groupValues: modifyCompanyList })
|
||||||
}
|
}
|
||||||
|
|
||||||
let modifyApplicantList: any = [];
|
this._pd.retriveForm(param).subscribe(data => {
|
||||||
if (this.applicants.length > 0) {
|
this.generalFormApplicantList = data.records.individuals.filter(app => app.is_applicant == true && app.is_active == true);
|
||||||
modifyApplicantList = this.applicants.map(element => {
|
if (data.dataStatus) {
|
||||||
return { id: element.pd_co_applicant_id, name: element.applicant_name, group_id: 2 };
|
let modifyApplicantList: any = [];
|
||||||
});
|
if (this.applicants.length > 0) {
|
||||||
this.mergeCompanyApplicant.push({ groupName: 'APPLICANTS', groupValues: modifyApplicantList })
|
modifyApplicantList = this.generalFormApplicantList.map(element => {
|
||||||
|
return { id: element.pd_co_applicant_id, name: element.applicant_name, group_id: 2 };
|
||||||
|
});
|
||||||
|
this.mergeCompanyApplicant.push({ groupName: 'APPLICANTS', groupValues: modifyApplicantList })
|
||||||
|
|
||||||
|
// this.listOfLanguagues.splice(this.listOfLanguagues.indexOf(languague), 1);
|
||||||
|
}
|
||||||
|
if (this.productAbbr != 'LAP') {
|
||||||
|
this.mergeCompanyApplicant.push({ groupName: 'OTHERS', groupValues: [{ id: 0, name: 'Not Yet Finalised', group_id: 2 }] })
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// this.listOfLanguagues.splice(this.listOfLanguagues.indexOf(languague), 1);
|
|
||||||
}
|
|
||||||
if (this.productAbbr != 'LAP') {
|
|
||||||
this.mergeCompanyApplicant.push({ groupName: 'OTHERS', groupValues: [{ id: 0, name: 'Not Yet Finalised', group_id: 2 }] })
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -615,10 +615,12 @@
|
|||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<!-- start validate appplicant/agreement payment options -->
|
<!-- start validate appplicant/agreement payment options -->
|
||||||
|
<div *ngIf="units.controls['paid_monthly_rent_per_met'] && units.controls['payment_mode'] && units.controls['monthly_rent_amount'] && units.controls['payment_mode_per_met']">
|
||||||
<mat-form-field style="width:100%" appearance="outline" *ngIf="(units.value.monthly_rent_amount>0 && units.value.paid_monthly_rent_per_met>0 && units.value.payment_mode!='' && units.value.payment_mode_per_met!='') && (units.value.monthly_rent_amount!=units.value.paid_monthly_rent_per_met) || units.value.payment_mode_per_met.id != 2 "><!-- || units.value.payment_mode.id!=units.value.payment_mode_per_met.id -->
|
<mat-form-field style="width:100%" appearance="outline" *ngIf="(units.value.monthly_rent_amount>0 && units.value.paid_monthly_rent_per_met>0 && units.value.payment_mode!='' && units.value.payment_mode_per_met!='') && (units.value.monthly_rent_amount!=units.value.paid_monthly_rent_per_met) || units.value.payment_mode_per_met.id != 2 "><!-- || units.value.payment_mode.id!=units.value.payment_mode_per_met.id -->
|
||||||
<mat-label>What is the Reason for Difference in Rent Amount</mat-label><!-- or Mode of Payment -->
|
<mat-label>What is the Reason for Difference in Rent Amount</mat-label><!-- or Mode of Payment -->
|
||||||
<input matInput autocomplete="off" placeholder="" formControlName="payment_difference_per_met">
|
<input matInput autocomplete="off" placeholder="" formControlName="payment_difference_per_met">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
</div>
|
||||||
<!-- end -->
|
<!-- end -->
|
||||||
|
|
||||||
<!-- end met payment -->
|
<!-- end met payment -->
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user