WEB-404 Required Field Validation Error Message Missing for Account Type Field in Create GL Account Form
This commit is contained in:
+3
-2
@@ -154,8 +154,6 @@ export class CreateGlAccountComponent implements OnInit, AfterViewInit {
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
this.glAccountForm.get('type').setValue(this.accountTypeId);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -163,6 +161,9 @@ export class CreateGlAccountComponent implements OnInit, AfterViewInit {
|
||||
* if successful redirects to view created account.
|
||||
*/
|
||||
submit() {
|
||||
if (this.glAccountForm.invalid) {
|
||||
return;
|
||||
}
|
||||
this.accountingService.createGlAccount(this.glAccountForm.value).subscribe((response: any) => {
|
||||
if (this.configurationWizardService.showChartofAccounts === true) {
|
||||
this.configurationWizardService.showChartofAccounts = false;
|
||||
|
||||
Reference in New Issue
Block a user