WEB-589 Prevent Negative Values for Balance Required and Minimum Balance in Savings Product Form
This commit is contained in:
+13
@@ -97,7 +97,14 @@
|
|||||||
matInput
|
matInput
|
||||||
matTooltip="{{ 'tooltips.Sets the balance required for interest calculation' | translate }}"
|
matTooltip="{{ 'tooltips.Sets the balance required for interest calculation' | translate }}"
|
||||||
formControlName="minBalanceForInterestCalculation"
|
formControlName="minBalanceForInterestCalculation"
|
||||||
|
min="0"
|
||||||
|
step="0.01"
|
||||||
/>
|
/>
|
||||||
|
<mat-error *ngIf="savingProductSettingsForm.get('minBalanceForInterestCalculation').hasError('min')">
|
||||||
|
{{ 'labels.inputs.Balance Required for Interest Calculation' | translate }}
|
||||||
|
{{ 'labels.commons.must be' | translate }}
|
||||||
|
{{ 'labels.commons.a positive number' | translate }}
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-checkbox
|
<mat-checkbox
|
||||||
@@ -116,7 +123,13 @@
|
|||||||
matInput
|
matInput
|
||||||
matTooltip="{{ 'tooltips.Sets the minimum balance allowed for a saving account' | translate }}"
|
matTooltip="{{ 'tooltips.Sets the minimum balance allowed for a saving account' | translate }}"
|
||||||
formControlName="minRequiredBalance"
|
formControlName="minRequiredBalance"
|
||||||
|
min="0"
|
||||||
|
step="0.01"
|
||||||
/>
|
/>
|
||||||
|
<mat-error *ngIf="savingProductSettingsForm.get('minRequiredBalance').hasError('min')">
|
||||||
|
{{ 'labels.inputs.Minimum Balance' | translate }} {{ 'labels.commons.must be' | translate }}
|
||||||
|
{{ 'labels.commons.a positive number' | translate }}
|
||||||
|
</mat-error>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-checkbox
|
<mat-checkbox
|
||||||
|
|||||||
+8
-2
@@ -94,9 +94,15 @@ export class SavingProductSettingsStepComponent implements OnInit {
|
|||||||
],
|
],
|
||||||
enableLockinPeriod: [false],
|
enableLockinPeriod: [false],
|
||||||
withdrawalFeeForTransfers: [false],
|
withdrawalFeeForTransfers: [false],
|
||||||
minBalanceForInterestCalculation: [''],
|
minBalanceForInterestCalculation: [
|
||||||
|
'',
|
||||||
|
[Validators.min(0)]
|
||||||
|
],
|
||||||
enforceMinRequiredBalance: [false],
|
enforceMinRequiredBalance: [false],
|
||||||
minRequiredBalance: [''],
|
minRequiredBalance: [
|
||||||
|
'',
|
||||||
|
[Validators.min(0)]
|
||||||
|
],
|
||||||
allowOverdraft: [false],
|
allowOverdraft: [false],
|
||||||
withHoldTax: [false],
|
withHoldTax: [false],
|
||||||
isDormancyTrackingActive: [false]
|
isDormancyTrackingActive: [false]
|
||||||
|
|||||||
Reference in New Issue
Block a user