aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/item
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-14 07:40:58 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-14 07:40:58 +0530
commit2f239481cdd750c2cbe85b012bdeb69841298c42 (patch)
treeab2e186632777200d4ba4ccf26503b1a4baa1dbe /item
parent9de7dcb3b45a86ee0de0e2b6f3044a859ed5ea08 (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.go2
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