fix: validate pan
This commit is contained in:
parent
214951a9c6
commit
866cf70d3a
@ -56,7 +56,7 @@ def validate_gstin_for_india(doc, method):
|
||||
.format(doc.gst_state_number))
|
||||
|
||||
def validate_pan_for_india(doc, method):
|
||||
if doc.get('country') != 'India':
|
||||
if doc.get('country') != 'India' or not doc.pan:
|
||||
return
|
||||
|
||||
p = re.compile("[A-Z]{5}[0-9]{4}[A-Z]{1}")
|
||||
|
Loading…
x
Reference in New Issue
Block a user