From 63e431a21931302e7b47d6e296a610d5ee1581ef Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 25 May 2015 16:15:39 +0530 Subject: [PATCH] minor fixes --- erpnext/setup/doctype/company/company.py | 2 +- erpnext/setup/doctype/sales_person/sales_person.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/setup/doctype/company/company.py b/erpnext/setup/doctype/company/company.py index 227512d017..6c67e60e50 100644 --- a/erpnext/setup/doctype/company/company.py +++ b/erpnext/setup/doctype/company/company.py @@ -206,7 +206,7 @@ class Company(Document): frappe.db.sql("""update tabItem set %s=NULL where %s in (%s)""" % (f, f, ', '.join(['%s']*len(warehouses))), tuple(warehouses)) - frappe.db.sql("""update `tabItem Reorder` set warehouse=NULL where warehouse in (%s)""" + frappe.db.sql("""delete from `tabItem Reorder` where warehouse in (%s)""" % ', '.join(['%s']*len(warehouses)), tuple(warehouses)) for f in ["income_account", "expense_account"]: diff --git a/erpnext/setup/doctype/sales_person/sales_person.py b/erpnext/setup/doctype/sales_person/sales_person.py index 21a86cf58d..8542c88546 100644 --- a/erpnext/setup/doctype/sales_person/sales_person.py +++ b/erpnext/setup/doctype/sales_person/sales_person.py @@ -32,4 +32,4 @@ class SalesPerson(NestedSet): sales_person = frappe.db.get_value("Sales Person", {"employee": self.employee}) if sales_person and sales_person != self.name: - frappe.throw(_("Another sales person {0} exists with the same employee id").format(sales_person)) + frappe.throw(_("Another Sales Person {0} exists with the same Employee id").format(sales_person))