Salutation and Gender in Lead and Customer (#9199)

This commit is contained in:
KanchanChauhan
2017-06-13 15:26:35 +05:30
committed by Rushabh Mehta
parent 797f2030f8
commit 1dc26b127b
18 changed files with 173 additions and 43 deletions

View File

@@ -50,7 +50,7 @@ $.extend(erpnext.queries, {
}
return {
query: 'frappe.email.doctype.contact.contact.contact_query',
query: 'frappe.contacts.doctype.contact.contact.contact_query',
filters: { link_doctype: frappe.dynamic_link.doctype, link_name: doc[frappe.dynamic_link.fieldname] } };
}
},
@@ -63,14 +63,14 @@ $.extend(erpnext.queries, {
}
return {
query: 'frappe.geo.doctype.address.address.address_query',
query: 'frappe.contacts.doctype.address.address.address_query',
filters: { link_doctype: frappe.dynamic_link.doctype, link_name: doc[frappe.dynamic_link.fieldname] } };
}
},
company_address_query: function(doc) {
return {
query: 'frappe.geo.doctype.address.address.address_query',
query: 'frappe.contacts.doctype.address.address.address_query',
filters: { is_your_company_address: 1, link_doctype: 'Company', link_name: doc.company || '' }
};
},