Skip to content

Commit

Permalink
fix: minor enhancements for new otp, gstr-1 download queue status update
Browse files Browse the repository at this point in the history
(cherry picked from commit f4a9633)
  • Loading branch information
vorasmit authored and mergify[bot] committed Sep 16, 2024
1 parent eacda25 commit 4ef2021
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions india_compliance/gst_india/api_classes/taxpayer_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,12 @@ def validate_auth_token(self):
# Dummy request
self.get_filing_preference()

frappe.cache.set_value(
f"authenticated_gstin:{self.company_gstin}",
True,
expires_in_sec=60 * 15,
)

return

def get_filing_preference(self):
Expand Down
1 change: 1 addition & 0 deletions india_compliance/gst_india/utils/gstr_1/gstr_1_download.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def save_gstr_1(gstin, return_period, json_data, return_type):

gstr1_log = frappe.get_doc("GST Return Log", f"GSTR1-{return_period}-{gstin}")
gstr1_log.update_json_for(data_field, mapped_data, overwrite=False)
gstr1_log.update_status("Generated")


def save_gstr_1_filed_data(gstin, return_period, json_data):
Expand Down

0 comments on commit 4ef2021

Please sign in to comment.