Set get_contact_details to the right standard!

This commit is contained in:
Maxwell Morais 2016-06-07 02:32:47 -03:00
parent 498cc58522
commit 57b6b1dc85

View File

@ -8,8 +8,9 @@ frappe.ui.form.on_change("Maintenance Schedule", "customer", function(frm) {
frappe.ui.form.on_change("Maintenance Schedule", "customer_address", function(){
erpnext.utils.get_address_display(cur_frm, 'customer_address', 'address_display');
});
frappe.ui.form.on_change("Maintenance Schedule", "contact_person",
erpnext.utils.get_contact_details);
frappe.ui.form.on_change("Maintenance Schedule", "contact_person", function(){
erpnext.utils.get_contact_details(cur_frm);
});
// TODO commonify this code
erpnext.support.MaintenanceSchedule = frappe.ui.form.Controller.extend({