fix: Remove unnecessary code

This commit is contained in:
Suraj Shetty 2021-05-21 17:37:19 +05:30
parent 81d49e9c71
commit 3e6cc5037b

View File

@ -450,11 +450,8 @@ erpnext.accounts.SalesInvoiceController = class SalesInvoiceController extends e
} }
}; };
console.log('innn')
// for backward compatibility: combine new and previous states // for backward compatibility: combine new and previous states
let controller_instance = new erpnext.accounts.SalesInvoiceController({frm: cur_frm}) extend_cscript(cur_frm.cscript, new erpnext.accounts.SalesInvoiceController({frm: cur_frm}));
extend_cscript(cur_frm.cscript, controller_instance);
extend_cscript(cur_frm.cscript.__proto_, controller_instance.__proto__);
cur_frm.cscript['Make Delivery Note'] = function() { cur_frm.cscript['Make Delivery Note'] = function() {
frappe.model.open_mapped_doc({ frappe.model.open_mapped_doc({