diff --git a/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html b/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html
index a04e643ae..93448b43b 100644
--- a/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html
+++ b/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.html
@@ -10,31 +10,29 @@
{{ 'labels.inputs.Minimum' | translate }}
-
-
+
+
{{ 'labels.commons.Minimum Value must be' | translate }}
- {{ 'labels.commons.greater equal to than 0' | translate }}
+ {{ loanProductTermsForm.get('minPrincipal')?.errors?.['min']?.min || 1 }}
{{ 'labels.inputs.Default' | translate }}
-
-
+
+
{{ 'labels.catalogs.Default' | translate }} {{ 'labels.inputs.Principal' | translate }}
{{ 'labels.commons.is' | translate }}
- {{ 'labels.commons.required' | translate }}
+ {{ loanProductTermsForm.get('principal')?.errors?.['min']?.min || 1 }}
{{ 'labels.inputs.Maximum' | translate }}
-
-
+
+
{{ 'labels.commons.Minimum Value must be' | translate }}
- {{ 'labels.commons.greater equal to than 0' | translate }}
- {{ 'labels.commons.and must be greater than' | translate }}
- {{ 'labels.commons.Minimum Principal' | translate }}
+ {{ loanProductTermsForm.get('maxPrincipal')?.errors?.['min']?.min || 1 }}
diff --git a/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.ts b/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.ts
index aefb19597..07a1ef1e3 100644
--- a/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.ts
+++ b/src/app/products/loan-products/loan-product-stepper/loan-product-terms-step/loan-product-terms-step.component.ts
@@ -188,12 +188,25 @@ export class LoanProductTermsStepComponent implements OnInit, OnChanges {
createLoanProductTermsForm() {
this.loanProductTermsForm = this.formBuilder.group({
useBorrowerCycle: [false],
- minPrincipal: [''],
+ minPrincipal: [
+ '',
+ [
+ Validators.min(1)
+ ]
+ ],
principal: [
'',
- Validators.required
+ [
+ Validators.required,
+ Validators.min(1)
+ ]
+ ],
+ maxPrincipal: [
+ '',
+ [
+ Validators.min(1)
+ ]
],
- maxPrincipal: [''],
minNumberOfRepayments: [
'',
[