Merge pull request #3526 from neilLasrado/minor-fixes

Minor fixes
This commit is contained in:
Nabin Hait 2015-06-29 18:53:10 +05:30
commit 8687d25f7e
2 changed files with 2 additions and 3 deletions

View File

@ -75,8 +75,7 @@ class Lead(SellingController):
return frappe.db.get_value("Customer", {"lead_name": self.name})
def has_opportunity(self):
return frappe.db.get_value("Opportunity", {"lead": self.name, "docstatus": 1,
"status": ["!=", "Lost"]})
return frappe.db.get_value("Opportunity", {"lead": self.name, "status": ["!=", "Lost"]})
@frappe.whitelist()
def make_customer(source_name, target_doc=None):

View File

@ -122,7 +122,7 @@ erpnext.SalesChart = Class.extend({
if(me.ctype == "Sales Person") {
fields.splice(-1, 0, {fieldtype:'Link', fieldname:'employee', label:__('Employee'),
options:'Employee', description: __("Please enter Employee Id of this sales parson")});
options:'Employee', description: __("Please enter Employee Id of this sales person")});
}
// the dialog