Skip to content

Commit

Permalink
Merge pull request resilient-tech#2973 from vorasmit/dup-error
Browse files Browse the repository at this point in the history
  • Loading branch information
vorasmit authored Jan 15, 2025
2 parents af284b1 + d59fb57 commit dd73d67
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 @@ -107,6 +107,8 @@ def get_and_validate_gstin_status(gstin, transaction_date):
validate_gstin_status(doc, transaction_date, throw=True)

else:
now = get_datetime()

# Don't delay the response if API is required
frappe.enqueue(
create_or_update_gstin_status,
Expand All @@ -115,6 +117,7 @@ def get_and_validate_gstin_status(gstin, transaction_date):
gstin=gstin,
transaction_date=transaction_date,
callback=validate_gstin_status,
job_id=f"create_or_update_gstin_status_{gstin}_{now.date()}_{now.hour}",
)


Expand Down

0 comments on commit dd73d67

Please sign in to comment.