Merge pull request #26467 from deepeshgarg007/gstr_1_json_dpwnload_error_develop

fix: Unable to download GSTR-1 json
This commit is contained in:
Deepesh Garg 2021-07-13 16:18:10 +05:30 committed by GitHub
commit 1352c7f943
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -584,7 +584,7 @@ class Gstr1Report(object):
def get_json(filters, report_name, data):
filters = json.loads(filters)
report_data = json.loads(data)
gstin = get_company_gstin_number(filters["company"], filters["company_address"])
gstin = get_company_gstin_number(filters.get("company"), filters.get("company_address"))
fp = "%02d%s" % (getdate(filters["to_date"]).month, getdate(filters["to_date"]).year)