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:
+6
@@ -7,7 +7,13 @@
|
|||||||
matInput
|
matInput
|
||||||
matTooltip="{{ 'tooltips.Sets the minimum deposit amount' | translate }}"
|
matTooltip="{{ 'tooltips.Sets the minimum deposit amount' | translate }}"
|
||||||
formControlName="minRequiredOpeningBalance"
|
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>
|
</mat-form-field>
|
||||||
|
|
||||||
<span class="flex-48 hide-lt-md"></span>
|
<span class="flex-48 hide-lt-md"></span>
|
||||||
|
|||||||
+4
-1
@@ -71,7 +71,10 @@ export class SavingProductSettingsStepComponent implements OnInit {
|
|||||||
|
|
||||||
createSavingProductSettingsForm() {
|
createSavingProductSettingsForm() {
|
||||||
this.savingProductSettingsForm = this.formBuilder.group({
|
this.savingProductSettingsForm = this.formBuilder.group({
|
||||||
minRequiredOpeningBalance: [''],
|
minRequiredOpeningBalance: [
|
||||||
|
'',
|
||||||
|
[Validators.min(0)]
|
||||||
|
],
|
||||||
lockinPeriodFrequency: [
|
lockinPeriodFrequency: [
|
||||||
'',
|
'',
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user