mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
fix: js error on customer doctype
This commit is contained in:
@@ -212,9 +212,11 @@ frappe.ui.form.on("Customer", {
|
|||||||
frappe.contacts.clear_address_and_contact(frm);
|
frappe.contacts.clear_address_and_contact(frm);
|
||||||
}
|
}
|
||||||
|
|
||||||
var grid = cur_frm.get_field("sales_team").grid;
|
let grid = frm.get_field("sales_team")?.grid;
|
||||||
grid.set_column_disp("allocated_amount", false);
|
if (grid) {
|
||||||
grid.set_column_disp("incentives", false);
|
grid.set_column_disp("allocated_amount", false);
|
||||||
|
grid.set_column_disp("incentives", false);
|
||||||
|
}
|
||||||
|
|
||||||
frm.set_query("customer_group", () => {
|
frm.set_query("customer_group", () => {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user