fix: fn name

This commit is contained in:
Saqib Ansari
2020-10-07 11:08:11 +05:30
committed by Saurabh
parent 94db0bba44
commit 4f3f935a7a
2 changed files with 2 additions and 2 deletions

View File

@@ -557,7 +557,7 @@ def download_cancel_einvoice():
frappe.response['type'] = 'download'
@frappe.whitelist()
def download_cancel_ack():
def upload_cancel_ack():
cancel_ack = json.loads(frappe.local.uploaded_file)
data = frappe._dict(frappe.local.form_dict)
doctype = data['doctype']

View File

@@ -162,7 +162,7 @@ erpnext.setup_einvoice_actions = (doctype) => {
"Upload Cancel JSON",
() => {
new frappe.ui.FileUploader({
method: 'erpnext.regional.india.e_invoice_utils.download_cancel_ack',
method: 'erpnext.regional.india.e_invoice_utils.upload_cancel_ack',
allow_multiple: 0,
doctype: frm.doc.doctype,
docname: frm.doc.name,