fix: add company filter for project

- In Project dt Sales Order field
- In Sales Order dt Project field
This commit is contained in:
IamSaiyyamChhetri
2024-10-21 12:28:27 +05:30
committed by ruthra kumar
parent 3eaaca7309
commit 9909d760a5
2 changed files with 2 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ frappe.ui.form.on("Project", {
frm.set_query("sales_order", function () {
var filters = {
project: ["in", frm.doc.__islocal ? [""] : [frm.doc.name, ""]],
company: frm.doc.company,
};
if (frm.doc.customer) {

View File

@@ -29,6 +29,7 @@ erpnext.sales_common = {
query: "erpnext.controllers.queries.get_project_name",
filters: {
customer: doc.customer,
company: doc.company,
},
};
});