fix: Unable to download GSTR-1 json

This commit is contained in:
Deepesh Garg 2021-07-10 10:06:38 +05:30
parent 00f90c50c0
commit 77f2d2d01e

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)