diff --git a/erpnext/projects/doctype/project_control/project_control.py b/erpnext/projects/doctype/project_control/project_control.py index c6e9102cf0..4d74e8c182 100644 --- a/erpnext/projects/doctype/project_control/project_control.py +++ b/erpnext/projects/doctype/project_control/project_control.py @@ -116,12 +116,13 @@ class DocType: return cstr('true') def sent_reminder_task(self): task_list = sql("select subject, allocated_to, project, exp_start_date, exp_end_date, \ - priority, status, name from tabTicket where email_notify=1 and reminder=0 and status='Open'",as_dict=1) + priority, status, name from tabTicket where task_email_notify=1 and sent_reminder=0 and status='Open' and \ + exp_start_date is not null",as_dict=1) for i in task_list: if (add_days(nowdate(),2) > i['exp_start_date']) and (add_days(nowdate(),3) < i['exp_start_date']): msg2="""This is an auto generated email.

This is a reminder for the task %s has been assigned \ to you by %s on %s

Project: %s

Review Date: %s

Closing Date: %s \ -

Details: %s

""" \ +

Details: %s

The expected start date of this task is on %s """ \ %(self.doc.name, self.doc.senders_name, self.doc.opening_date, \ self.doc.project, self.doc.review_date, self.doc.closing_date, self.doc.description) sendmail(self.doc.allocated_to, sender='automail@webnotestech.com', msg=msg2,send_now=1,\ diff --git a/erpnext/projects/doctype/ticket/ticket.txt b/erpnext/projects/doctype/ticket/ticket.txt index 6efae3e82d..a1ac330e1d 100644 --- a/erpnext/projects/doctype/ticket/ticket.txt +++ b/erpnext/projects/doctype/ticket/ticket.txt @@ -5,14 +5,14 @@ { 'creation': '2011-01-28 17:52:35', 'docstatus': 0, - 'modified': '2011-12-23 11:13:42', + 'modified': '2011-12-23 12:02:29', 'modified_by': 'Administrator', 'owner': 'Administrator' }, # These values are common for all DocType { - '_last_update': '1324544468', + '_last_update': '1324619022', 'allow_trash': 1, 'autoname': 'TIC/.####', 'colour': 'White:FFF', @@ -26,7 +26,7 @@ 'show_in_menu': 0, 'subject': '%(subject)s', 'tag_fields': 'status', - 'version': 251 + 'version': 252 }, # These values are common for all DocField