mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
fix: filter sales team to show only active individual salespersons
This commit is contained in:
@@ -798,6 +798,15 @@ frappe.ui.form.on("Sales Invoice", {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.set_query("sales_person", "sales_team", function () {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
is_group: 0,
|
||||||
|
enabled: 1,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
frm.redemption_conversion_factor = null;
|
frm.redemption_conversion_factor = null;
|
||||||
|
|||||||
@@ -44,6 +44,15 @@ frappe.ui.form.on("Sales Order", {
|
|||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.set_query("sales_person", "sales_team", function () {
|
||||||
|
return {
|
||||||
|
filters: {
|
||||||
|
is_group: 0,
|
||||||
|
enabled: 1,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
});
|
||||||
|
|
||||||
frm.set_df_property("packed_items", "cannot_add_rows", true);
|
frm.set_df_property("packed_items", "cannot_add_rows", true);
|
||||||
frm.set_df_property("packed_items", "cannot_delete_rows", true);
|
frm.set_df_property("packed_items", "cannot_delete_rows", true);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user