aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/item
diff options
context:
space:
mode:
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