mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: gstin validation should work when there is no state (#16378)
This commit is contained in:
@@ -21,7 +21,9 @@ def validate_gstin_for_india(doc, method):
|
|||||||
|
|
||||||
validate_gstin_check_digit(doc.gstin)
|
validate_gstin_check_digit(doc.gstin)
|
||||||
|
|
||||||
if not doc.gst_state and doc.state:
|
if not doc.gst_state:
|
||||||
|
if not doc.state:
|
||||||
|
return
|
||||||
state = doc.state.lower()
|
state = doc.state.lower()
|
||||||
states_lowercase = {s.lower():s for s in states}
|
states_lowercase = {s.lower():s for s in states}
|
||||||
if state in states_lowercase:
|
if state in states_lowercase:
|
||||||
|
|||||||
Reference in New Issue
Block a user