fix in send notification part of recurring invoices

This commit is contained in:
Anand Doshi 2012-01-27 14:34:26 +05:30
parent f5738817db
commit 76a4caeada
2 changed files with 2 additions and 2 deletions

View File

@ -589,5 +589,5 @@ def send_notification(new_rv):
msg = hd + tbl + totals
from webnotes.utils.email_lib import sendmail
sendmail(recipients = [new_rv.doc.email_notification_address], \
sendmail(recipients = new_rv.doc.notification_email_address.split(", "), \
sender=new_rv.doc.owner, subject=subject, parts=[['text/plain', msg]])

View File

@ -439,7 +439,7 @@ cur_frm.cscript['View Ledger Entry'] = function(){
cur_frm.cscript.convert_into_recurring_invoice = function(doc) {
if (doc.convert_into_recurring_invoice) {
doc.repeat_on_day_of_month = doc.posting_date.split('-')[2];
doc.notification_email_address = doc.owner + ', ' + doc.contact_email;
doc.notification_email_address = [doc.owner, doc.contact_email].join(', ');
refresh_field(['repeat_on_day_of_month', 'notification_email_address']);
}
}