Fairoj : Coapplicants fetch on trigger screen from excel done

This commit is contained in:
venbatechnologies@gmail.com 2020-11-20 12:03:14 +05:30
parent 666e57d272
commit a14b9f8c9f
2 changed files with 9 additions and 1 deletions

View File

@ -71,7 +71,7 @@
<mat-option *ngFor="let person of sales_and_credit_person.sales_person" [value]="person.userid">{{person.user_name}}</mat-option>
</mat-select>
</mat-form-field>
<mat-form-field *ngIf="lenderShortName == 'MWISE'">
<mat-form-field fxFlex="28%" fxFlex.xs="100%" *ngIf="lenderShortName == 'MWISE'">
<mat-label>Lender Sales Person</mat-label>
<input matInput type="text" formControlName="mwise_sales_person"/>
<mat-error *ngIf="_PDtriggerForm.controls['mwise_sales_person'].hasError('required')">Required</mat-error>

View File

@ -1147,6 +1147,14 @@ searchFun(control:any,i:number,option){
records[key_name] = temp[0].customer_segment_id
}
}
if(key_name == 'co_applicants') {
records['coapplicants'] = records[key_name]
delete records[key_name]
for(let item of records.coapplicants) {
item.coapplicant_name = item.applicant_name
this.addCoApplicant()
}
}
// formValues[val.key_name] = val.value
}
})