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>
+1
View File
@@ -389,6 +389,7 @@
"Export": "Vývozní",
"Export CSV": "Vývozní CSV",
"Export XLS": "Vývozní XLS",
"Filter": "filtr",
"Foreclosure": "Exekuce",
"GLIM Loan Application": "Žádost o půjčku GLIM",
"GSIM Application": "Aplikace GSIM",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Export",
"Export CSV": "CSV exportieren",
"Export XLS": "XLS exportieren",
"Filter": "Filter",
"Foreclosure": "Zwangsvollstreckung",
"GLIM Loan Application": "GLIM-Kreditantrag",
"GSIM Application": "GSIM-Anwendung",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Export",
"Export CSV": "Export CSV",
"Export XLS": "Export XLS",
"Filter": "filter",
"Foreclosure": "Foreclosure",
"GLIM Loan Application": "GLIM Loan Application",
"GSIM Application": "GSIM Application",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Exportar",
"Export CSV": "Exportar CSV",
"Export XLS": "Exportar XLS",
"Filter": "filtrar",
"Foreclosure": "Juicio hipotecario",
"GLIM Loan Application": "Solicitud de Crédito GLIM",
"GSIM Application": "Aplicación GSIM",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Exporter",
"Export CSV": "Exporter au format CSV",
"Export XLS": "Exporter au format XLS",
"Filter": "filtre",
"Foreclosure": "Forclusion",
"GLIM Loan Application": "Demande de prêt GLIM",
"GSIM Application": "Demande GSIM",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Esportare",
"Export CSV": "Esporta CSV",
"Export XLS": "Esporta XLS",
"Filter": "filtro",
"Foreclosure": "Pignoramento",
"GLIM Loan Application": "Richiesta di prestito GLIM",
"GSIM Application": "Applicazione GSMIM",
+1
View File
@@ -389,6 +389,7 @@
"Export": "내보내다",
"Export CSV": "CSV 내보내기",
"Export XLS": "XLS 내보내기",
"Filter": "필터",
"Foreclosure": "유질",
"GLIM Loan Application": "GLIM 대출 신청",
"GSIM Application": "GSIM 애플리케이션",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Eksportuoti",
"Export CSV": "Eksportuoti CSV",
"Export XLS": "Eksportuoti XLS",
"Filter": "filtras",
"Foreclosure": "Uždarymas",
"GLIM Loan Application": "GLIM paskolos paraiška",
"GSIM Application": "GSIM programa",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Eksportēt",
"Export CSV": "Eksportēt CSV",
"Export XLS": "Eksportēt XLS",
"Filter": "filtrēt",
"Foreclosure": "Preces ierobežošana",
"GLIM Loan Application": "GLIM aizdevuma pieteikums",
"GSIM Application": "GSIM lietojumprogramma",
+1
View File
@@ -389,6 +389,7 @@
"Export": "निर्यात गर्नुहोस्",
"Export CSV": "CSV निर्यात गर्नुहोस्",
"Export XLS": "XLS निर्यात गर्नुहोस्",
"Filter": "फिल्टर",
"Foreclosure": "फोरक्लोजर",
"GLIM Loan Application": "GLIM ऋण आवेदन",
"GSIM Application": "GSIM आवेदन",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Exportar",
"Export CSV": "Exportar CSV",
"Export XLS": "Exportar XLS",
"Filter": "filtro",
"Foreclosure": "Execução hipotecária",
"GLIM Loan Application": "Solicitação de empréstimo GLIM",
"GSIM Application": "Aplicação GSM",
+1
View File
@@ -389,6 +389,7 @@
"Export": "Hamisha",
"Export CSV": "Hamisha CSV",
"Export XLS": "Hamisha XLS",
"Filter": "Kichujio",
"Foreclosure": "Foreclosure",
"GLIM Loan Application": "Maombi ya Mkopo wa GLIM",
"GSIM Application": "Maombi ya GSIM",