fix: now submit doesn't require to select validDate

Fixes: #1981
This commit is contained in:
Pushpendra Kumar
2024-01-29 17:34:01 +01:00
committed by Adam Saghy
parent 50fed229dc
commit e49006bc20
15 changed files with 15 additions and 4 deletions
@@ -39,7 +39,7 @@ export class EditStandingInstructionsComponent implements OnInit {
/** Minimum date allowed. */
minDate = new Date(2000, 0, 1);
/** Maximum date allowed. */
maxDate = new Date();
maxDate = new Date(2100,0,1);
/**
* Retrieves the standing instructions template from `resolve`.
@@ -70,7 +70,6 @@ export class EditStandingInstructionsComponent implements OnInit {
* Creates and sets the edit standing instructions form.
*/
ngOnInit() {
this.maxDate = this.settingsService.businessDate;
this.createEditStandingInstructionsForm();
const presentDate = new Date();
const n = presentDate.getFullYear();