mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 22:49:19 +00:00
fix: Test case fixes and linting issues
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user