Skip to content

Commit e3aab24

Browse files
committed
WEB-446: Remove incorrect validation
1 parent 4d181b5 commit e3aab24

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/app/loans/loans-view/loan-account-actions/loan-reaging/loan-reaging.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@
8484
[isRequired]="false"
8585
[inputFormControl]="reagingLoanForm.controls.transactionAmount"
8686
[inputLabel]="'Transaction Amount'"
87-
[minVal]="loanTransactionData.amount"
88-
[maxVal]="loanTransactionData.amount"
87+
[minVal]="0"
8988
>
9089
</mifosx-input-amount>
9190
}

src/app/loans/loans-view/loan-account-actions/loan-reaging/loan-reaging.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ export class LoanReagingComponent implements OnInit {
8989
transactionAmount: [
9090
,
9191
[
92-
Validators.min(this.loanTransactionData.amount),
93-
Validators.max(this.loanTransactionData.amount)
92+
Validators.min(0)
9493
]
9594
],
9695
note: '',

src/app/products/saving-products/saving-product-stepper/saving-product-terms-step/saving-product-terms-step.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ export class SavingProductTermsStepComponent implements OnInit {
5454
'',
5555
[
5656
Validators.required,
57-
Validators.min(0)]
57+
Validators.min(0)
58+
]
5859
],
5960
interestCompoundingPeriodType: [
6061
'',

0 commit comments

Comments
 (0)