Using future dates in loan application
This commit is contained in:
committed by
Arnold Gálovics
parent
74fa92d81b
commit
753791a078
+1
-1
@@ -54,7 +54,7 @@
|
||||
|
||||
<mat-form-field fxFlex="48%" (click)="disbursementPicker.open()">
|
||||
<mat-label>Disbursement on</mat-label>
|
||||
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="disbursementPicker" required
|
||||
<input matInput [min]="loansAccountDetailsForm.value.submittedOnDate" [max]="maxDate" [matDatepicker]="disbursementPicker" required
|
||||
formControlName="expectedDisbursementDate">
|
||||
<mat-datepicker-toggle matSuffix [for]="disbursementPicker"></mat-datepicker-toggle>
|
||||
<mat-datepicker #disbursementPicker></mat-datepicker>
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ export class LoansAccountDetailsStepComponent implements OnInit {
|
||||
/** Minimum date allowed. */
|
||||
minDate = new Date(2000, 0, 1);
|
||||
/** Maximum date allowed. */
|
||||
maxDate = new Date();
|
||||
maxDate = new Date(2100, 0, 1);
|
||||
/** Product Data */
|
||||
productData: any;
|
||||
/** Loan Officer Data */
|
||||
|
||||
+2
-2
@@ -42,7 +42,7 @@
|
||||
|
||||
<mat-form-field fxFlex="48%" (click)="repaymentsPicker.open()">
|
||||
<mat-label>First repayment on</mat-label>
|
||||
<input matInput [min]="minDate" [matDatepicker]="repaymentsPicker"
|
||||
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="repaymentsPicker"
|
||||
formControlName="repaymentsStartingFromDate">
|
||||
<mat-datepicker-toggle matSuffix [for]="repaymentsPicker"></mat-datepicker-toggle>
|
||||
<mat-datepicker #repaymentsPicker></mat-datepicker>
|
||||
@@ -94,7 +94,7 @@
|
||||
|
||||
<mat-form-field fxFlex="48%" (click)="interestPicker.open()">
|
||||
<mat-label>Interest charged from</mat-label>
|
||||
<input matInput [min]="minDate" [matDatepicker]="interestPicker"
|
||||
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="interestPicker"
|
||||
formControlName="interestChargedFromDate">
|
||||
<mat-datepicker-toggle matSuffix [for]="interestPicker"></mat-datepicker-toggle>
|
||||
<mat-datepicker #interestPicker></mat-datepicker>
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ export class LoansAccountTermsStepComponent implements OnInit, OnChanges {
|
||||
/** Minimum date allowed. */
|
||||
minDate = new Date(2000, 0, 1);
|
||||
/** Maximum date allowed. */
|
||||
maxDate = new Date();
|
||||
maxDate = new Date(2100, 0, 1);
|
||||
/** Loans Account Terms Form */
|
||||
loansAccountTermsForm: FormGroup;
|
||||
/** Term Frequency Type Data */
|
||||
|
||||
Reference in New Issue
Block a user