mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
fix: Codacy fixes
This commit is contained in:
@@ -225,7 +225,7 @@ def get_json(filters, report_name, data):
|
|||||||
|
|
||||||
fp = "%02d%s" % (getdate(filters["to_date"]).month, getdate(filters["to_date"]).year)
|
fp = "%02d%s" % (getdate(filters["to_date"]).month, getdate(filters["to_date"]).year)
|
||||||
|
|
||||||
gst_json = {"gstin": "", "version": "GST2.3.4",
|
gst_json = {"version": "GST2.3.4",
|
||||||
"hash": "hash", "gstin": gstin, "fp": fp}
|
"hash": "hash", "gstin": gstin, "fp": fp}
|
||||||
|
|
||||||
gst_json["hsn"] = {
|
gst_json["hsn"] = {
|
||||||
@@ -239,7 +239,7 @@ def get_json(filters, report_name, data):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def download_json_file():
|
def download_json_file():
|
||||||
''' download json content in a file '''
|
'''download json content in a file'''
|
||||||
data = frappe._dict(frappe.local.form_dict)
|
data = frappe._dict(frappe.local.form_dict)
|
||||||
frappe.response['filename'] = frappe.scrub("{0}".format(data['report_name'])) + '.json'
|
frappe.response['filename'] = frappe.scrub("{0}".format(data['report_name'])) + '.json'
|
||||||
frappe.response['filecontent'] = data['data']
|
frappe.response['filecontent'] = data['data']
|
||||||
|
|||||||
Reference in New Issue
Block a user