Merge pull request #50033 from rehanrehman389/filter-sales-team

fix: filter sales team to show only active individual salespersons
This commit is contained in:
Khushi Rawat
2025-10-14 17:08:56 +05:30
committed by GitHub
2 changed files with 18 additions and 0 deletions

View File

@@ -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_delete_rows", true);
},