Smart PD changes
This commit is contained in:
parent
8f0ec626e4
commit
9705938bb8
@ -1241,7 +1241,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
|
|||||||
if (flag == 1) {
|
if (flag == 1) {
|
||||||
if (value == 'yes') {
|
if (value == 'yes') {
|
||||||
item.controls.business_years.setValidators([Validators.required]);
|
item.controls.business_years.setValidators([Validators.required]);
|
||||||
if(this.fk_pd_type != '3') {
|
if(this.fk_pd_type != '3' && this.fk_pd_type != '2') {
|
||||||
item.controls.business_is_pd_visited.setValidators([Validators.required]);
|
item.controls.business_is_pd_visited.setValidators([Validators.required]);
|
||||||
item.controls.business_pd_visited_remark.setValidators([Validators.required]);
|
item.controls.business_pd_visited_remark.setValidators([Validators.required]);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -37,16 +37,20 @@
|
|||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="is_person_met">
|
<ng-container matColumnDef="is_person_met">
|
||||||
<mat-header-cell *matHeaderCellDef> <span *ngIf="pd_all_details.pdmaster_details.fk_pd_type == '3'">Person Contacted</span>
|
<mat-header-cell *matHeaderCellDef>
|
||||||
<span *ngIf="pd_all_details.pdmaster_details.fk_pd_type != '3'">Is Person Met</span> </mat-header-cell>
|
<span *ngIf="fk_pd_type == '3' || fk_pd_type == '2'">Person Contacted</span>
|
||||||
|
<span *ngIf="fk_pd_type != '3' && fk_pd_type != '2'">Is Person Met</span>
|
||||||
|
</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
|
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
|
||||||
<mat-checkbox class="table-checkbox" color="primary"
|
<mat-checkbox class="table-checkbox" color="primary"
|
||||||
formControlName="is_person_met" (change)="split_customer_abbr == 'SAL' ? salariedcheck() : ''"></mat-checkbox>
|
formControlName="is_person_met" (change)="split_customer_abbr == 'SAL' ? salariedcheck() : ''"></mat-checkbox>
|
||||||
</mat-cell>
|
</mat-cell>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-container matColumnDef="is_applicant">
|
<ng-container matColumnDef="is_applicant">
|
||||||
<mat-header-cell *matHeaderCellDef> <span *ngIf="pd_all_details.pdmaster_details.fk_pd_type == '3'">Is Loan applicant</span>
|
<mat-header-cell *matHeaderCellDef>
|
||||||
<span *ngIf="pd_all_details.pdmaster_details.fk_pd_type != '3'"> Is Applicant </span></mat-header-cell>
|
<span *ngIf="fk_pd_type == '3' || fk_pd_type == '2'">Is Loan applicant</span>
|
||||||
|
<span *ngIf="fk_pd_type != '3' && fk_pd_type != '2'"> Is Applicant </span>
|
||||||
|
</mat-header-cell>
|
||||||
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
|
<mat-cell *matCellDef="let details;let i = index;" [formGroupName]="i">
|
||||||
<mat-checkbox class="table-checkbox" color="primary"
|
<mat-checkbox class="table-checkbox" color="primary"
|
||||||
formControlName="is_applicant" (change)="split_customer_abbr == 'SAL' ? salariedcheck() : ''"></mat-checkbox>
|
formControlName="is_applicant" (change)="split_customer_abbr == 'SAL' ? salariedcheck() : ''"></mat-checkbox>
|
||||||
|
|||||||
@ -88,6 +88,7 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
image_doc_params: { pdid: string; form_id: number; company_id: string; };
|
||||||
checksalaried: boolean = false;
|
checksalaried: boolean = false;
|
||||||
split_customer_abbr: any;
|
split_customer_abbr: any;
|
||||||
|
fk_pd_type: any;
|
||||||
|
|
||||||
/********************** Declaration Section Ends Here *****************/
|
/********************** Declaration Section Ends Here *****************/
|
||||||
|
|
||||||
@ -100,6 +101,7 @@ export class GeneralInfoComponent implements OnInit {
|
|||||||
this.pd_applicants_details = this.pd_all_details.pdapplicants_detials;
|
this.pd_applicants_details = this.pd_all_details.pdapplicants_detials;
|
||||||
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
this.main_applicant = this.pd_all_details.pdmaster_details.main_applicant;
|
||||||
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
|
||||||
|
this.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
|
||||||
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
|
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.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
|
||||||
this.split_customer_abbr = this.customer_segment_abbr.split('-')
|
this.split_customer_abbr = this.customer_segment_abbr.split('-')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user