fix: exclude disabled customers when fetching customers on process statement of accounts (#35539)

fix: exclude disabled when fetching customers
This commit is contained in:
Dirk van der Laarse
2023-06-07 18:31:44 +02:00
committed by GitHub
parent e9d7b9f0f4
commit 3b409af9a0

View File

@@ -158,7 +158,10 @@ def get_customers_based_on_territory_or_customer_group(customer_collection, coll
return frappe.get_list(
"Customer",
fields=["name", "customer_name", "email_id"],
filters=[[fields_dict[customer_collection], "IN", selected]],
filters=[
["disabled", "=", 0],
[fields_dict[customer_collection], "IN", selected]
],
)