Merge pull request #2884 from JaySoni1/WEB-463-Minimum-Opening-Balance-Field-Allows-Zero-and-Negative-Values-in-Saving-Product-Creation-Form

WEB-463 Minimum Opening Balance Field Allows Zero and Negative Values in Saving Product Creation Form
This commit is contained in:
Jose Alberto Hernandez
2025-12-18 09:13:41 -05:00
committed by GitHub
2 changed files with 10 additions and 1 deletions
@@ -7,7 +7,13 @@
matInput
matTooltip="{{ 'tooltips.Sets the minimum deposit amount' | translate }}"
formControlName="minRequiredOpeningBalance"
min="0"
step="0.01"
/>
<mat-error *ngIf="savingProductSettingsForm.get('minRequiredOpeningBalance').hasError('min')">
{{ 'labels.inputs.Minimum Opening Balance' | translate }} {{ 'labels.commons.must be' | translate }}
{{ 'labels.commons.a positive number' | translate }}
</mat-error>
</mat-form-field>
<span class="flex-48 hide-lt-md"></span>
@@ -71,7 +71,10 @@ export class SavingProductSettingsStepComponent implements OnInit {
createSavingProductSettingsForm() {
this.savingProductSettingsForm = this.formBuilder.group({
minRequiredOpeningBalance: [''],
minRequiredOpeningBalance: [
'',
[Validators.min(0)]
],
lockinPeriodFrequency: [
'',
[