chore: Remove cur_frm from sales_invoice.js

This commit is contained in:
Deepesh Garg
2023-07-23 22:44:18 +05:30
parent 8d3d9493f0
commit cdc9b62688
4 changed files with 9 additions and 12 deletions

View File

@@ -1,9 +1,6 @@
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// License: GNU General Public License v3. See license.txt
frappe.provide("erpnext.crm");
cur_frm.email_field = "contact_email";
erpnext.pre_sales.set_as_lost("Quotation");
erpnext.sales_common.setup_selling_controller();
@@ -22,6 +19,8 @@ frappe.ui.form.on("Opportunity", {
}
}
});
frm.email_field = "contact_email";
},
validate: function(frm) {