WEB-664 Fixed Deposit Product Form: Negative Values Allowed in SETTINGS fields (#3089)
This commit is contained in:
+5
-5
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
||||||
<input type="number" matInput formControlName="lockinPeriodFrequency" />
|
<input type="number" min="0" matInput formControlName="lockinPeriodFrequency" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
||||||
<input type="number" matInput formControlName="minDepositTerm" required />
|
<input type="number" min="0" matInput formControlName="minDepositTerm" required />
|
||||||
<mat-error>
|
<mat-error>
|
||||||
{{ 'labels.inputs.Minimum Deposit Term Frequency' | translate }} {{ 'labels.commons.is' | translate }}
|
{{ 'labels.inputs.Minimum Deposit Term Frequency' | translate }} {{ 'labels.commons.is' | translate }}
|
||||||
<strong>{{ 'labels.commons.required' | translate }}</strong>
|
<strong>{{ 'labels.commons.required' | translate }}</strong>
|
||||||
@@ -71,7 +71,7 @@
|
|||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
||||||
<input type="number" matInput formControlName="inMultiplesOfDepositTerm" />
|
<input type="number" min="0" matInput formControlName="inMultiplesOfDepositTerm" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
@@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
<mat-label>{{ 'labels.inputs.Frequency' | translate }}</mat-label>
|
||||||
<input type="number" matInput formControlName="maxDepositTerm" />
|
<input type="number" min="0" matInput formControlName="maxDepositTerm" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
<mat-label>{{ 'labels.inputs.Penal Interest' | translate }} (%)</mat-label>
|
<mat-label>{{ 'labels.inputs.Penal Interest' | translate }} (%)</mat-label>
|
||||||
<input type="number" matInput formControlName="preClosurePenalInterest" />
|
<input type="number" min="0" matInput formControlName="preClosurePenalInterest" />
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field class="flex-48">
|
<mat-form-field class="flex-48">
|
||||||
|
|||||||
+20
-5
@@ -97,22 +97,37 @@ export class FixedDepositProductSettingsStepComponent implements OnInit {
|
|||||||
|
|
||||||
createFixedDepositProductSettingsForm() {
|
createFixedDepositProductSettingsForm() {
|
||||||
this.fixedDepositProductSettingsForm = this.formBuilder.group({
|
this.fixedDepositProductSettingsForm = this.formBuilder.group({
|
||||||
lockinPeriodFrequency: [''],
|
lockinPeriodFrequency: [
|
||||||
|
'',
|
||||||
|
Validators.min(0)
|
||||||
|
],
|
||||||
lockinPeriodFrequencyType: [''],
|
lockinPeriodFrequencyType: [''],
|
||||||
minDepositTerm: [
|
minDepositTerm: [
|
||||||
'',
|
'',
|
||||||
Validators.required
|
[
|
||||||
|
Validators.required,
|
||||||
|
Validators.min(0)
|
||||||
|
]
|
||||||
],
|
],
|
||||||
minDepositTermTypeId: [
|
minDepositTermTypeId: [
|
||||||
'',
|
'',
|
||||||
Validators.required
|
Validators.required
|
||||||
],
|
],
|
||||||
inMultiplesOfDepositTerm: [''],
|
inMultiplesOfDepositTerm: [
|
||||||
|
'',
|
||||||
|
Validators.min(0)
|
||||||
|
],
|
||||||
inMultiplesOfDepositTermTypeId: [''],
|
inMultiplesOfDepositTermTypeId: [''],
|
||||||
maxDepositTerm: [''],
|
maxDepositTerm: [
|
||||||
|
'',
|
||||||
|
Validators.min(0)
|
||||||
|
],
|
||||||
maxDepositTermTypeId: [''],
|
maxDepositTermTypeId: [''],
|
||||||
preClosurePenalApplicable: [false],
|
preClosurePenalApplicable: [false],
|
||||||
preClosurePenalInterest: [''],
|
preClosurePenalInterest: [
|
||||||
|
'',
|
||||||
|
Validators.min(0)
|
||||||
|
],
|
||||||
preClosurePenalInterestOnTypeId: [''],
|
preClosurePenalInterestOnTypeId: [''],
|
||||||
withHoldTax: [false]
|
withHoldTax: [false]
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user