Skip to content

Commit

Permalink
fix: don't validate if empty
Browse files Browse the repository at this point in the history
(cherry picked from commit 8d67f0b)
  • Loading branch information
vorasmit authored and mergify[bot] committed Aug 31, 2023
1 parent 3267418 commit 6546892
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions india_compliance/gst_india/doctype/gstin/gstin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6546892

Please sign in to comment.