diff --git a/india_compliance/gst_india/doctype/gstin/gstin.py b/india_compliance/gst_india/doctype/gstin/gstin.py index bd8bd5899..93ce26140 100644 --- a/india_compliance/gst_india/doctype/gstin/gstin.py +++ b/india_compliance/gst_india/doctype/gstin/gstin.py @@ -54,6 +54,9 @@ def get_gstin_status(gstin, transaction_date=None, is_request_from_ui=0): """ Permission check not required as GSTIN details are public where GSTIN is known. """ + if not gstin: + return + if not is_status_refresh_required(gstin, transaction_date): if not frappe.db.exists("GSTIN", gstin): return