Merge pull request #20386 from rohitwaghchaure/fixed_lead_date_comparision_issue_develop
fix: lead date comparison issue
This commit is contained in:
commit
1d279c30bb
@ -62,7 +62,8 @@ class Lead(SellingController):
|
|||||||
if self.contact_date and getdate(self.contact_date) < getdate(nowdate()):
|
if self.contact_date and getdate(self.contact_date) < getdate(nowdate()):
|
||||||
frappe.throw(_("Next Contact Date cannot be in the past"))
|
frappe.throw(_("Next Contact Date cannot be in the past"))
|
||||||
|
|
||||||
if self.ends_on and self.contact_date and (self.ends_on < self.contact_date):
|
if (self.ends_on and self.contact_date and
|
||||||
|
(getdate(self.ends_on) < getdate(self.contact_date))):
|
||||||
frappe.throw(_("Ends On date cannot be before Next Contact Date."))
|
frappe.throw(_("Ends On date cannot be before Next Contact Date."))
|
||||||
|
|
||||||
def on_update(self):
|
def on_update(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user