From d75095b04c794e957315f67e41cd0d5764d8fee5 Mon Sep 17 00:00:00 2001 From: Sagar Vora Date: Wed, 23 Jan 2019 14:40:01 +0530 Subject: [PATCH] fix(regional): remove duplicate validation for GSTIN --- erpnext/regional/india/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/regional/india/utils.py b/erpnext/regional/india/utils.py index 43ed8688647..d93ef3b87dd 100644 --- a/erpnext/regional/india/utils.py +++ b/erpnext/regional/india/utils.py @@ -11,7 +11,7 @@ def validate_gstin_for_india(doc, method): if not hasattr(doc, 'gstin') or not doc.gstin: return - doc.gstin = doc.gstin.upper().strip() if doc.gstin else "" + doc.gstin = doc.gstin.upper().strip() if not doc.gstin or doc.gstin == 'NA': return