diff --git a/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.html b/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.html index 69a344fff..4407009bb 100644 --- a/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.html +++ b/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.html @@ -95,7 +95,7 @@ {{"labels.inputs.To Office" | translate}} - + {{ toOfficeType.name }} @@ -107,7 +107,7 @@ {{"labels.inputs.Beneficiary" | translate}} - + {{ toClientType.displayName }} @@ -234,7 +234,7 @@ + (click)="submit()">{{"labels.buttons.Submit" | translate}} diff --git a/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.ts b/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.ts index 75e789398..d9a15eb91 100644 --- a/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.ts +++ b/src/app/account-transfers/create-standing-instructions/create-standing-instructions.component.ts @@ -58,6 +58,10 @@ export class CreateStandingInstructionsComponent implements OnInit { accountTypeId: any; /** Office Id */ officeId: any; + /** ToOffice Id Boolean for disabling the officeId formControl */ + ToOfficeId: any; + /** ToClient Id Boolean for disabling the officeId formControl */ + ToClientId: any; /** Account Type */ accountType: any; /** Client Id */ @@ -119,7 +123,7 @@ export class CreateStandingInstructionsComponent implements OnInit { createCreateStandingInstructionsForm() { this.createStandingInstructionsForm = this.formBuilder.group({ 'name': ['', Validators.required], - 'applicant': [{value: '', disabled: true}], + 'applicant': [{ value: '', disabled: true }], 'transferType': ['', Validators.required], 'priority': ['', Validators.required], 'status': ['', Validators.required], @@ -169,8 +173,8 @@ export class CreateStandingInstructionsComponent implements OnInit { 'toOfficeId': this.officeId, 'toClientId': this.clientId }); - this.createStandingInstructionsForm.controls['toOfficeId'].disable(); - this.createStandingInstructionsForm.controls['toClientId'].disable(); + this.ToOfficeId = true; + this.ToClientId = true; this.changeEvent(); } else { this.allowclientedit = true;