Smart PD changes

This commit is contained in:
sriram-at-840620226347 2020-07-01 14:48:49 +05:30
parent 8f0ec626e4
commit 9705938bb8
3 changed files with 11 additions and 5 deletions

View File

@ -1241,7 +1241,7 @@ export class BusinessAssetsInfoComponent implements OnInit {
if (flag == 1) {
if (value == 'yes') {
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_pd_visited_remark.setValidators([Validators.required]);
}

View File

@ -37,16 +37,20 @@
</mat-cell>
</ng-container>
<ng-container matColumnDef="is_person_met">
<mat-header-cell *matHeaderCellDef> <span *ngIf="pd_all_details.pdmaster_details.fk_pd_type == '3'">Person Contacted</span>
<span *ngIf="pd_all_details.pdmaster_details.fk_pd_type != '3'">Is Person Met</span> </mat-header-cell>
<mat-header-cell *matHeaderCellDef>
<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-checkbox class="table-checkbox" color="primary"
formControlName="is_person_met" (change)="split_customer_abbr == 'SAL' ? salariedcheck() : ''"></mat-checkbox>
</mat-cell>
</ng-container>
<ng-container matColumnDef="is_applicant">
<mat-header-cell *matHeaderCellDef> <span *ngIf="pd_all_details.pdmaster_details.fk_pd_type == '3'">Is Loan applicant</span>
<span *ngIf="pd_all_details.pdmaster_details.fk_pd_type != '3'"> Is Applicant </span></mat-header-cell>
<mat-header-cell *matHeaderCellDef>
<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-checkbox class="table-checkbox" color="primary"
formControlName="is_applicant" (change)="split_customer_abbr == 'SAL' ? salariedcheck() : ''"></mat-checkbox>

View File

@ -88,6 +88,7 @@ export class GeneralInfoComponent implements OnInit {
image_doc_params: { pdid: string; form_id: number; company_id: string; };
checksalaried: boolean = false;
split_customer_abbr: any;
fk_pd_type: any;
/********************** Declaration Section Ends Here *****************/
@ -100,6 +101,7 @@ export class GeneralInfoComponent implements OnInit {
this.pd_applicants_details = this.pd_all_details.pdapplicants_detials;
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.fk_pd_type = this.pd_all_details.pdmaster_details.fk_pd_type;
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.split_customer_abbr = this.customer_segment_abbr.split('-')