diff --git a/erpnext/accounts/doctype/gl_control/gl_control.py b/erpnext/accounts/doctype/gl_control/gl_control.py index 01f31eb7ddc..bab86267c15 100644 --- a/erpnext/accounts/doctype/gl_control/gl_control.py +++ b/erpnext/accounts/doctype/gl_control/gl_control.py @@ -515,6 +515,7 @@ def manage_recurring_invoices(): send_notification(new_rv) + def create_new_invoice(prev_rv): # clone rv new_rv = clone(prev_rv) @@ -533,6 +534,61 @@ def create_new_invoice(prev_rv): return new_rv + def send_notification(new_rv): """Notify concerned persons about recurring invoice generation""" - pass + subject = "Invoice : " + new_rv.doc.name + + com = new_rv.doc.company # get_value('Control Panel', '', 'letter_head') + + hd = '''
| Customer %s %s |
+ Invoice Date: %s Due Date: %s |
+
| Item | +Description | +Qty | +Rate | +Amount | +
| ' + d.item_code +' | ' + d.description+' | ' + cstr(d.qty) +' | ' + cstr(d.basic_rate) +' | ' + cstr(d.amount) +' |
| + |
+
|
+ ||||||||
| Terms: | |||||||||
| %s |