diff options
| author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-14 07:40:58 +0530 | 
|---|---|---|
| committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2025-10-14 07:40:58 +0530 | 
| commit | 2f239481cdd750c2cbe85b012bdeb69841298c42 (patch) | |
| tree | ab2e186632777200d4ba4ccf26503b1a4baa1dbe /item | |
| parent | 9de7dcb3b45a86ee0de0e2b6f3044a859ed5ea08 (diff) | |
returning 'invalid quantity' error instead of 'invalid gst' in case of invalid quantityv0.23.1
Diffstat (limited to 'item')
| -rw-r--r-- | item/validators.go | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/item/validators.go b/item/validators.go index 1fba170..400f358 100644 --- a/item/validators.go +++ b/item/validators.go @@ -74,7 +74,7 @@ func (v *ItemVariant) validate() error {  	// check if QuantityInStock is float  	_, err = strconv.ParseFloat(v.QuantityInStock, 64)  	if err != nil && v.QuantityInStock != "" { -		return errors.ErrInvalidGSTPercentage +		return errors.ErrInvalidQuantityInStock  	}  	return nil  |