From 3f040a8f9e39611c37e605f0b58e1418758ee1df Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 5 Dec 2011 12:17:51 +0530 Subject: [PATCH 1/2] Resolved bug Project creation: Customer details not getting autofilled on customer selection --- erpnext/projects/doctype/project/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/projects/doctype/project/project.py b/erpnext/projects/doctype/project/project.py index 9930bf4213..4504191fda 100644 --- a/erpnext/projects/doctype/project/project.py +++ b/erpnext/projects/doctype/project/project.py @@ -34,9 +34,9 @@ class DocType: 'customer_name' : details and details[0]['customer_name'] or '' } #get primary contact details(this is done separately coz. , if join query used & no primary contact thn it would not be able to fetch customer details) - contact_det = sql("select contact_name, contact_no, email_id from `tabContact` where customer_name='%s' and is_customer=1 and is_primary_contact='Yes' and docstatus!=2" %(self.doc.customer), as_dict = 1) + contact_det = sql("select contact_name, phone, email_id from `tabContact` where customer_name='%s' and is_customer=1 and is_primary_contact=1 and docstatus!=2" %(self.doc.customer), as_dict = 1) ret['contact_person'] = contact_det and contact_det[0]['contact_name'] or '' - ret['contact_no'] = contact_det and contact_det[0]['contact_no'] or '' + ret['contact_no'] = contact_det and contact_det[0]['phone'] or '' ret['email_id'] = contact_det and contact_det[0]['email_id'] or '' return ret else: From 2532391bcbf8a58b945743fa6bec4237f5af1078 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 6 Dec 2011 10:43:15 +0530 Subject: [PATCH 2/2] Version changes due to change in dom.js --- index.html | 2 +- versions-master.db | Bin 730112 -> 730112 bytes 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index e575daca80..db7c228009 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ ERPNext -