Update erpnext/public/js/sms_manager.js

Co-Authored-By: Deepesh Garg <42651287+deepeshgarg007@users.noreply.github.com>
This commit is contained in:
Anurag Mishra 2019-07-09 17:54:00 +05:30 committed by GitHub
parent de13faf19a
commit e9dd9b842e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ erpnext.SMSManager = function SMSManager(doc) {
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(['Quotation'], doc.doctype))
else if (doc.doctype === 'Quotation')
this.show(doc.contact_person, 'Customer', doc.party_name, '', 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]);