fix: Test case fixes and linting issues

This commit is contained in:
Deepesh Garg
2021-10-25 11:21:55 +05:30
parent e3ae8d5a1e
commit cd4b20313e
3 changed files with 3 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ def validate_gstin_for_india(doc, method):
.format(doc.gst_state_number), title=_("Invalid GSTIN"))
def validate_pan_for_india(doc, method):
if doc.get('country') != 'India' or not doc.pan:
if doc.get('country') != 'India' or not doc.get('pan'):
return
if not PAN_NUMBER_FORMAT.match(doc.pan):