mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 23:49:19 +00:00
[minor] [fix] removed contact_date_ref
This commit is contained in:
@@ -98,9 +98,9 @@ class DocType(TransactionBase):
|
|||||||
super(DocType, self).add_calendar_event(opts, force)
|
super(DocType, self).add_calendar_event(opts, force)
|
||||||
|
|
||||||
def set_last_contact_date(self):
|
def set_last_contact_date(self):
|
||||||
if self.doc.contact_date:
|
if self._prev.contact_date:
|
||||||
if not self.doc.last_contact_date or (getdate(self.doc.last_contact_date) <= getdate(self.doc.contact_date)):
|
if not self.doc.last_contact_date or (getdate(self._prev.contact_date) <= getdate(self.doc.contact_date)):
|
||||||
self.doc.last_contact_date = self.doc.contact_date
|
self.doc.last_contact_date = self._prev.contact_date
|
||||||
else:
|
else:
|
||||||
webnotes.throw(webnotes._("Contact Date Cannot be before Last Contact Date"))
|
webnotes.throw(webnotes._("Contact Date Cannot be before Last Contact Date"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user