account type issues fixed
This commit is contained in:
parent
eec33d5c58
commit
1b3707a8aa
@ -308,7 +308,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-select (selectionChange)="selectedAccTypeChanges($event.value,i)"
|
<mat-select (selectionChange)="selectedAccTypeChanges1($event.value,l)"
|
||||||
placeholder="Account Type" formControlName="account_type_business">
|
placeholder="Account Type" formControlName="account_type_business">
|
||||||
<mat-option>Select</mat-option>
|
<mat-option>Select</mat-option>
|
||||||
<mat-option *ngFor="let prop of m_accountType" [value]="prop.id">{{
|
<mat-option *ngFor="let prop of m_accountType" [value]="prop.id">{{
|
||||||
@ -334,7 +334,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field style="width: 45%;" *ngIf="this.limitCaseFlag[i]">
|
<mat-form-field style="width: 45%;" *ngIf="this.limitCaseFlag1[l]">
|
||||||
<!-- *ngIf="itemrow.get('account_type').value != 2">
|
<!-- *ngIf="itemrow.get('account_type').value != 2">
|
||||||
<input matInput autocomplete="off" placeholder="Limit in case of OD / CC account"
|
<input matInput autocomplete="off" placeholder="Limit in case of OD / CC account"
|
||||||
formControlName="limit" OnlyNumber type="text" (keyup)="inWords($event,i,1)">
|
formControlName="limit" OnlyNumber type="text" (keyup)="inWords($event,i,1)">
|
||||||
@ -342,7 +342,7 @@
|
|||||||
{{amtInwords[i]}} Only</mat-hint>-->
|
{{amtInwords[i]}} Only</mat-hint>-->
|
||||||
<input matInput autocomplete="off" placeholder="Limit in case of OD / CC account"
|
<input matInput autocomplete="off" placeholder="Limit in case of OD / CC account"
|
||||||
formControlName="limit_business" OnlyNumber type="text">
|
formControlName="limit_business" OnlyNumber type="text">
|
||||||
<mat-hint align="start" style="font-size:90%" *ngIf="itemrow1.get('limit').value != ''">{{"₹"}} {{itemrow1.get('limit').value | numberToWords}} Only</mat-hint>
|
<mat-hint align="start" style="font-size:90%" *ngIf="itemrow1.get('limit_business').value != ''">{{"₹"}} {{itemrow1.get('limit_business').value | numberToWords}} Only</mat-hint>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@ -49,7 +49,7 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
salaryField: boolean;
|
salaryField: boolean;
|
||||||
OtherFlag: any = [];
|
OtherFlag: any = [];
|
||||||
limitCaseFlag: any = [];
|
limitCaseFlag: any = [];
|
||||||
|
limitCaseFlag1: any = [];
|
||||||
existCompanyList: any = [];
|
existCompanyList: any = [];
|
||||||
mergeCompanyApplicant: any = [];
|
mergeCompanyApplicant: any = [];
|
||||||
documentsAndFilesList: any = [];
|
documentsAndFilesList: any = [];
|
||||||
@ -195,7 +195,7 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
result1.forEach((datas, index) => {
|
result1.forEach((datas, index) => {
|
||||||
// this.selectedBorrower(datas.applicant_name,index);
|
// this.selectedBorrower(datas.applicant_name,index);
|
||||||
this.selectedAccTypeChanges(+datas.account_type, index)
|
this.selectedAccTypeChanges1(+datas.account_type_business, index)
|
||||||
// this.emiAmtInwords[index] = this._pd.convertNumberToWords(val.emi);
|
// this.emiAmtInwords[index] = this._pd.convertNumberToWords(val.emi);
|
||||||
//control.push(this.createBankarray());
|
//control.push(this.createBankarray());
|
||||||
control1.push(this.createBusinessarray());
|
control1.push(this.createBusinessarray());
|
||||||
@ -487,6 +487,7 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
|
|
||||||
selectedAccTypeChanges(event: any, i) {
|
selectedAccTypeChanges(event: any, i) {
|
||||||
|
|
||||||
|
|
||||||
if (event == 2 || event == 1) {
|
if (event == 2 || event == 1) {
|
||||||
this.limitCaseFlag[i] = false;
|
this.limitCaseFlag[i] = false;
|
||||||
|
|
||||||
@ -500,6 +501,24 @@ export class BankingDetailsComponent implements OnInit {
|
|||||||
this.limitCaseFlag[i] = true;
|
this.limitCaseFlag[i] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
selectedAccTypeChanges1(event: any, l) {
|
||||||
|
|
||||||
|
alert(event);
|
||||||
|
alert(l);
|
||||||
|
if (event == 2 || event == 1) {
|
||||||
|
this.limitCaseFlag1[l] = false;
|
||||||
|
|
||||||
|
// const control = <FormArray>this.bankingForm.controls['itemRows'];
|
||||||
|
|
||||||
|
// control.controls[0].get('limit').clearValidators();
|
||||||
|
// control.controls[0].get('limit').updateValueAndValidity();
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
this.limitCaseFlag1[l] = true;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
/** To Convert Month into Year */
|
/** To Convert Month into Year */
|
||||||
ConvertMonthintoYear(itemrow, e) {
|
ConvertMonthintoYear(itemrow, e) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user