From f72de95a38a05e63fded93e302d14df16e310d33 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 18 Aug 2014 19:51:47 +0530 Subject: [PATCH] [fix] SMS Center --- erpnext/selling/doctype/sms_center/sms_center.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/selling/doctype/sms_center/sms_center.py b/erpnext/selling/doctype/sms_center/sms_center.py index 8c4cad3207..d53a20ec89 100644 --- a/erpnext/selling/doctype/sms_center/sms_center.py +++ b/erpnext/selling/doctype/sms_center/sms_center.py @@ -18,12 +18,10 @@ class SMSCenter(Document): where_clause = self.customer and " and customer = '%s'" % \ self.customer.replace("'", "\'") or " and ifnull(customer, '') != ''" if self.send_to == 'All Supplier Contact': - where_clause = self.supplier and \ - " and ifnull(is_supplier, 0) = 1 and supplier = '%s'" % \ + where_clause = self.supplier and " and supplier = '%s'" % \ self.supplier.replace("'", "\'") or " and ifnull(supplier, '') != ''" if self.send_to == 'All Sales Partner Contact': - where_clause = self.sales_partner and \ - " and ifnull(is_sales_partner, 0) = 1 and sales_partner = '%s'" % \ + where_clause = self.sales_partner and " and sales_partner = '%s'" % \ self.sales_partner.replace("'", "\'") or " and ifnull(sales_partner, '') != ''" if self.send_to in ['All Contact', 'All Customer Contact', 'All Supplier Contact', 'All Sales Partner Contact']: