mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-03 02:25:00 +00:00
Minor fix (#13600)
This commit is contained in:
committed by
Rushabh Mehta
parent
f92fcdbac4
commit
2c111b7b14
@@ -10,7 +10,7 @@ def validate_gstin_for_india(doc, method):
|
||||
|
||||
if doc.gstin:
|
||||
doc.gstin = doc.gstin.upper()
|
||||
if doc.gstin != "NA":
|
||||
if doc.gstin not in ["NA", "na"]:
|
||||
p = re.compile("[0-9]{2}[a-zA-Z]{5}[0-9]{4}[a-zA-Z]{1}[1-9A-Za-z]{1}[Z]{1}[0-9a-zA-Z]{1}")
|
||||
if not p.match(doc.gstin):
|
||||
frappe.throw(_("Invalid GSTIN or Enter NA for Unregistered"))
|
||||
|
||||
Reference in New Issue
Block a user