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
@@ -161,7 +161,7 @@
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['../view']">{{"labels.buttons.Cancel" | translate}}</button>
<button mat-raised-button color="primary" [disabled]="!editStandingInstructionsForm.valid"
(click)="submit()" *mifosxHasPermission="'UPDATE_STANDINGINSTRUCTION'">{{"labels.buttons.Submit | translate}}</button>
(click)="submit()" *mifosxHasPermission="'UPDATE_STANDINGINSTRUCTION'">{{"labels.buttons.Submit" | translate}}</button>
</mat-card-actions>
</form>
@@ -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();
@@ -36,7 +36,7 @@
</mat-form-field>
<button mat-raised-button color="primary" *mifosxHasPermission="'READ_STANDINGINSTRUCTION'" (click)="filterStandingInstructions()" class="filter-button">
&nbsp;&nbsp;{{ "labels.buttons.filter" | translate}}
&nbsp;&nbsp;{{ "labels.buttons.Filter" | translate}}
</button>
</div>