mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 09:24:45 +00:00
fix: Update call_popup
- Setup missed & call ended listeners - Show contacts based on links
This commit is contained in:
@@ -352,7 +352,7 @@ def get_lead_with_phone_number(number):
|
||||
leads = frappe.get_all('Lead', or_filters={
|
||||
'phone': ['like', '%{}'.format(number)],
|
||||
'mobile_no': ['like', '%{}'.format(number)]
|
||||
}, limit=1)
|
||||
}, limit=1, order_by="creation DESC")
|
||||
|
||||
lead = leads[0].name if leads else None
|
||||
|
||||
@@ -361,4 +361,4 @@ def get_lead_with_phone_number(number):
|
||||
def daily_open_lead():
|
||||
leads = frappe.get_all("Lead", filters = [["contact_date", "Between", [nowdate(), nowdate()]]])
|
||||
for lead in leads:
|
||||
frappe.db.set_value("Lead", lead.name, "status", "Open")
|
||||
frappe.db.set_value("Lead", lead.name, "status", "Open")
|
||||
|
||||
Reference in New Issue
Block a user