fix in send notification part of recurring invoices
This commit is contained in:
parent
f5738817db
commit
76a4caeada
@ -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]])
|
||||
|
@ -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']);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user