@@ -55,7 +55,6 @@ <h4 class="mat-h4 flex-98">
5555 mifosxPositiveNumber
5656 min ="0 "
5757 formControlName ="repaymentEvery "
58- min ="0 "
5958 matTooltip ="{{ 'tooltips.Fields are input to calculating the repayment schedule' | translate }} "
6059 />
6160 @if (loansAccountTermsForm.controls.repaymentEvery.hasError('required')) {
@@ -64,9 +63,6 @@ <h4 class="mat-h4 flex-98">
6463 < strong > {{ 'labels.commons.required' | translate }}</ strong >
6564 </ mat-error >
6665 }
67- @if (loansAccountTermsForm.controls.repaymentEvery.hasError('min')) {
68- < mat-error > {{ 'labels.inputs.Repaid every' | translate }} must be at least < strong > 0</ strong > </ mat-error >
69- }
7066 </ mat-form-field >
7167
7268 < mat-form-field class ="flex-23 ">
@@ -116,16 +112,13 @@ <h4 class="mat-h4 flex-98">
116112 @if (loanProductService.isLoanProduct) {
117113 < mat-form-field class ="flex-fill flex-23 ">
118114 < mat-label > {{ 'labels.inputs.Loan Term' | translate }}</ mat-label >
119- < input type ="number " matInput required formControlName ="loanTermFrequency " min =" 0 " />
115+ < input type ="number " matInput required formControlName ="loanTermFrequency " />
120116 @if (loansAccountTermsForm.controls.loanTermFrequency.hasError('required')) {
121117 < mat-error >
122118 {{ 'labels.inputs.Loan Term' | translate }} {{ 'labels.commons.is' | translate }}
123119 < strong > {{ 'labels.commons.required' | translate }}</ strong >
124120 </ mat-error >
125121 }
126- @if (loansAccountTermsForm.controls.loanTermFrequency.hasError('min')) {
127- < mat-error > {{ 'labels.inputs.Loan Term' | translate }} must be at least < strong > 0</ strong > </ mat-error >
128- }
129122 </ mat-form-field >
130123
131124 < mat-form-field class ="flex-fill flex-23 ">
@@ -165,7 +158,6 @@ <h4 class="mat-h4 flex-98">{{ 'labels.inputs.Repayments' | translate }}</h4>
165158 type ="number "
166159 matInput
167160 formControlName ="numberOfRepayments "
168- min ="0 "
169161 matTooltip ="{{ 'tooltips.Enter the total count of repayments' | translate }} "
170162 />
171163 @if (loansAccountTermsForm.controls.numberOfRepayments.hasError('required')) {
@@ -174,11 +166,6 @@ <h4 class="mat-h4 flex-98">{{ 'labels.inputs.Repayments' | translate }}</h4>
174166 < strong > {{ 'labels.commons.required' | translate }}</ strong >
175167 </ mat-error >
176168 }
177- @if (loansAccountTermsForm.controls.numberOfRepayments.hasError('min')) {
178- < mat-error >
179- {{ 'labels.inputs.Number of repayments' | translate }} must be at least < strong > 0</ strong >
180- </ mat-error >
181- }
182169 </ mat-form-field >
183170
184171 @if (loansAccountTermsData?.canDefineInstallmentAmount) {
@@ -231,7 +218,6 @@ <h4 class="mat-h4 flex-98">
231218 matInput
232219 required
233220 formControlName ="repaymentEvery "
234- min ="0 "
235221 matTooltip ="{{ 'tooltips.Fields are input to calculating the repayment schedule' | translate }} "
236222 />
237223 @if (loansAccountTermsForm.controls.repaymentEvery.hasError('required')) {
@@ -240,9 +226,6 @@ <h4 class="mat-h4 flex-98">
240226 < strong > {{ 'labels.commons.required' | translate }}</ strong >
241227 </ mat-error >
242228 }
243- @if (loansAccountTermsForm.controls.repaymentEvery.hasError('min')) {
244- < mat-error > {{ 'labels.inputs.Repaid every' | translate }} must be at least < strong > 0</ strong > </ mat-error >
245- }
246229 </ mat-form-field >
247230
248231 < mat-form-field class ="flex-fill flex-23 ">
@@ -304,12 +287,7 @@ <h4 class="mat-h4 flex-98">{{ 'labels.inputs.Nominal interest rate' | translate
304287 @if (!loansAccountTermsData?.isLoanProductLinkedToFloatingRate) {
305288 < mat-form-field class ="flex-fill flex-23 ">
306289 < mat-label > {{ 'labels.inputs.Nominal interest rate' | translate }} %</ mat-label >
307- < input type ="number " matInput formControlName ="interestRatePerPeriod " min ="0.01 " step ="0.01 " />
308- @if (loansAccountTermsForm.controls.interestRatePerPeriod.hasError('min')) {
309- < mat-error >
310- {{ 'labels.inputs.Nominal interest rate' | translate }} must be at least < strong > 0.01</ strong >
311- </ mat-error >
312- }
290+ < input type ="number " matInput formControlName ="interestRatePerPeriod " />
313291 </ mat-form-field >
314292 < mat-form-field class ="flex-fill flex-23 ">
315293 < mat-label > {{ 'labels.inputs.Frequency' | translate }}</ mat-label >
@@ -490,30 +468,17 @@ <h4 class="mat-h4 flex-98">{{ 'labels.heading.Interest Calculations' | translate
490468 matInput
491469 type ="number "
492470 formControlName ="inArrearsTolerance "
493- min ="0 "
494471 matTooltip ="{{ 'tooltips.With Arrears tolerance' | translate }} "
495472 />
496- @if (loansAccountTermsForm.controls.inArrearsTolerance.hasError('min')) {
497- < mat-error >
498- {{ 'labels.inputs.Arrears tolerance' | translate }} must be at least < strong > 0</ strong >
499- </ mat-error >
500- }
501473 </ mat-form-field >
502474
503475 < mat-form-field class ="flex-48 ">
504476 < mat-label > {{ 'labels.inputs.Interest free period' | translate }}</ mat-label >
505477 < input
506478 matInput
507- type ="number "
508479 formControlName ="graceOnInterestCharged "
509- min ="0 "
510480 matTooltip ="{{ 'tooltips.If the Interest Free Period' | translate }} "
511481 />
512- @if (loansAccountTermsForm.controls.graceOnInterestCharged.hasError('min')) {
513- < mat-error >
514- {{ 'labels.inputs.Interest free period' | translate }} must be at least < strong > 0</ strong >
515- </ mat-error >
516- }
517482 </ mat-form-field >
518483
519484 < h4 class ="mat-h4 flex-98 ">
@@ -523,32 +488,17 @@ <h4 class="mat-h4 flex-98">
523488
524489 < mat-form-field class ="flex-fill flex-23 ">
525490 < mat-label > {{ 'labels.inputs.Grace on principal payment' | translate }}</ mat-label >
526- < input type ="number " matInput formControlName ="graceOnPrincipalPayment " min ="0 " />
527- @if (loansAccountTermsForm.controls.graceOnPrincipalPayment.hasError('min')) {
528- < mat-error >
529- {{ 'labels.inputs.Grace on principal payment' | translate }} must be at least < strong > 0</ strong >
530- </ mat-error >
531- }
491+ < input type ="number " matInput formControlName ="graceOnPrincipalPayment " />
532492 </ mat-form-field >
533493
534494 < mat-form-field class ="flex-fill flex-23 ">
535495 < mat-label > {{ 'labels.inputs.Grace on interest payment' | translate }}</ mat-label >
536- < input type ="number " matInput formControlName ="graceOnInterestPayment " min ="0 " />
537- @if (loansAccountTermsForm.controls.graceOnInterestPayment.hasError('min')) {
538- < mat-error >
539- {{ 'labels.inputs.Grace on interest payment' | translate }} must be at least < strong > 0</ strong >
540- </ mat-error >
541- }
496+ < input type ="number " matInput formControlName ="graceOnInterestPayment " />
542497 </ mat-form-field >
543498
544499 < mat-form-field class ="flex-48 ">
545500 < mat-label > {{ 'labels.inputs.On arrears ageing' | translate }}</ mat-label >
546- < input type ="number " matInput formControlName ="graceOnArrearsAgeing " min ="0 " />
547- @if (loansAccountTermsForm.controls.graceOnArrearsAgeing.hasError('min')) {
548- < mat-error >
549- {{ 'labels.inputs.On arrears ageing' | translate }} must be at least < strong > 0</ strong >
550- </ mat-error >
551- }
501+ < input type ="number " matInput formControlName ="graceOnArrearsAgeing " />
552502 </ mat-form-field >
553503
554504 @if (isDelinquencyEnabled()) {
0 commit comments