From 83f3a0b0fe45d922011a700919aecf6403d6db1b Mon Sep 17 00:00:00 2001 From: Soni Jay Date: Wed, 3 Dec 2025 08:40:52 +0530 Subject: [PATCH] WEB-459 Shares to be Issued Field Allows Zero and Negative Values in Share Product Creation Form (#2846) --- .../share-product-terms-step.component.html | 6 +++++- .../share-product-terms-step.component.ts | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.html b/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.html index 0301a43d4..14fe10bcf 100644 --- a/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.html +++ b/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.html @@ -27,11 +27,15 @@ matTooltip="{{ 'tooltips.Total number of shares that an orgranization' | translate }}" formControlName="sharesIssued" required + min="1" /> - + {{ 'labels.inputs.Shares to be Issued' | translate }} {{ 'labels.commons.is' | translate }} {{ 'labels.commons.required' | translate }} + + {{ 'labels.inputs.Shares to be Issued' | translate }} must be at least 1 + diff --git a/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.ts b/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.ts index c19d4b92b..b0fb3766f 100644 --- a/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.ts +++ b/src/app/products/share-products/share-product-stepper/share-product-terms-step/share-product-terms-step.component.ts @@ -62,7 +62,9 @@ export class ShareProductTermsStepComponent implements OnInit { ], sharesIssued: [ '', - Validators.required + [ + Validators.required, + Validators.min(1)] ], unitPrice: [ '',