From 2f239481cdd750c2cbe85b012bdeb69841298c42 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 14 Oct 2025 07:40:58 +0530 Subject: returning 'invalid quantity' error instead of 'invalid gst' in case of invalid quantity --- item/validators.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'item/validators.go') 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 -- cgit v1.2.3