fix: exclude disabled customers when fetching customers on process statement of accounts (#35539)
fix: exclude disabled when fetching customers
This commit is contained in:
parent
e9d7b9f0f4
commit
3b409af9a0
@ -158,7 +158,10 @@ def get_customers_based_on_territory_or_customer_group(customer_collection, coll
|
|||||||
return frappe.get_list(
|
return frappe.get_list(
|
||||||
"Customer",
|
"Customer",
|
||||||
fields=["name", "customer_name", "email_id"],
|
fields=["name", "customer_name", "email_id"],
|
||||||
filters=[[fields_dict[customer_collection], "IN", selected]],
|
filters=[
|
||||||
|
["disabled", "=", 0],
|
||||||
|
[fields_dict[customer_collection], "IN", selected]
|
||||||
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user