WEB-404 Required Field Validation Error Message Missing for Account Type Field in Create GL Account Form

This commit is contained in:
JaySoni1
2025-11-06 03:04:26 +05:30
parent 9caac8cda6
commit da1160bff6
2 changed files with 27 additions and 6 deletions
@@ -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;