mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 14:09:19 +00:00
Merge pull request #40323 from deepeshgarg007/project_sales_filter
fix: Filter for projects in Sales Cycle
This commit is contained in:
@@ -352,7 +352,9 @@ def get_project_name(doctype, txt, searchfield, start, page_len, filters):
|
|||||||
ifelse = CustomFunction("IF", ["condition", "then", "else"])
|
ifelse = CustomFunction("IF", ["condition", "then", "else"])
|
||||||
|
|
||||||
if filters and filters.get("customer"):
|
if filters and filters.get("customer"):
|
||||||
qb_filter_and_conditions.append(proj.customer == filters.get("customer"))
|
qb_filter_and_conditions.append(
|
||||||
|
(proj.customer == filters.get("customer")) | proj.customer.isnull() | proj.customer == ""
|
||||||
|
)
|
||||||
|
|
||||||
qb_filter_and_conditions.append(proj.status.notin(["Completed", "Cancelled"]))
|
qb_filter_and_conditions.append(proj.status.notin(["Completed", "Cancelled"]))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user