From f326d5c9a1b3191e6992c294365336c8d93641ec Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Thu, 18 Jul 2019 13:50:37 +0530 Subject: [PATCH] fix: send sms not working for the quotation --- erpnext/public/js/sms_manager.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/public/js/sms_manager.js b/erpnext/public/js/sms_manager.js index 6ce8bb11500..ea469e73d83 100644 --- a/erpnext/public/js/sms_manager.js +++ b/erpnext/public/js/sms_manager.js @@ -20,7 +20,7 @@ erpnext.SMSManager = function SMSManager(doc) { 'Purchase Receipt' : 'Items has been received against purchase receipt: ' + doc.name } - if (in_list(['Quotation', 'Sales Order', 'Delivery Note', 'Sales Invoice'], doc.doctype)) + if (in_list(['Sales Order', 'Delivery Note', 'Sales Invoice'], doc.doctype)) this.show(doc.contact_person, 'Customer', doc.customer, '', default_msg[doc.doctype]); else if (in_list(['Purchase Order', 'Purchase Receipt'], doc.doctype)) this.show(doc.contact_person, 'Supplier', doc.supplier, '', default_msg[doc.doctype]); @@ -28,6 +28,8 @@ erpnext.SMSManager = function SMSManager(doc) { this.show('', '', '', doc.mobile_no, default_msg[doc.doctype]); else if (doc.doctype == 'Opportunity') this.show('', '', '', doc.contact_no, default_msg[doc.doctype]); + else if (doc.doctype == 'Quotation') + this.show(doc.contact_person, doc.quotation_to, doc.party_name, '', default_msg[doc.doctype]); else if (doc.doctype == 'Material Request') this.show('', '', '', '', default_msg[doc.doctype]);