diff --git a/erpnext/accounts/doctype/gl_control/gl_control.py b/erpnext/accounts/doctype/gl_control/gl_control.py
index 93bef5de76a..21b768024e4 100644
--- a/erpnext/accounts/doctype/gl_control/gl_control.py
+++ b/erpnext/accounts/doctype/gl_control/gl_control.py
@@ -560,10 +560,10 @@ def send_notification(new_rv):
Customer %s %s |
- Invoice Date: %s Due Date: %s |
+ Invoice Date: %s Period: %s to %s Due Date: %s |
- ''' % (com, new_rv.doc.name, new_rv.doc.customer, new_rv.doc.address_display, new_rv.doc.posting_date, new_rv.doc.due_date)
+ ''' % (com, new_rv.doc.name, new_rv.doc.customer, new_rv.doc.address_display, new_rv.doc.posting_date, add_days(add_months(new_rv.doc.posting_date, -1), 1), new_rv.doc.posting_date, new_rv.doc.due_date)
tbl = '''
@@ -603,6 +603,7 @@ def send_notification(new_rv):
msg = hd + tbl + totals
+ msgprint(msg)
from webnotes.utils.email_lib import sendmail
- sendmail(recipients = new_rv.doc.notification_email_address.split(", "), \
- sender=new_rv.doc.owner, subject=subject, parts=[['text/plain', msg]])
+ #sendmail(recipients = new_rv.doc.notification_email_address.split(", "), \
+ # sender=new_rv.doc.owner, subject=subject, parts=[['text/plain', msg]])