feat: add Lead to Adresse And contact report
diff --git a/erpnext/selling/report/address_and_contacts/address_and_contacts.js b/erpnext/selling/report/address_and_contacts/address_and_contacts.js
index ef87586..8aa14d1 100644
--- a/erpnext/selling/report/address_and_contacts/address_and_contacts.js
+++ b/erpnext/selling/report/address_and_contacts/address_and_contacts.js
@@ -13,7 +13,7 @@
"get_query": function() {
return {
"filters": {
- "name": ["in","Customer,Supplier,Sales Partner"],
+ "name": ["in","Customer,Supplier,Sales Partner,Lead"],
}
}
}
diff --git a/erpnext/selling/report/address_and_contacts/address_and_contacts.py b/erpnext/selling/report/address_and_contacts/address_and_contacts.py
index 9a1cfda..4542bdf 100644
--- a/erpnext/selling/report/address_and_contacts/address_and_contacts.py
+++ b/erpnext/selling/report/address_and_contacts/address_and_contacts.py
@@ -130,6 +130,7 @@
"Customer": "customer_group",
"Supplier": "supplier_group",
"Sales Partner": "partner_type",
+ "Lead": "status",
}
return group[party_type]