supplier can now be searched using name

This commit is contained in:
Anand Doshi 2012-11-22 17:39:19 +05:30
parent ba6aafedad
commit 83350bc946
7 changed files with 21 additions and 6 deletions

View File

@ -668,4 +668,6 @@ cur_frm.cscript.project_name = function(doc, cdt, cdn) {
});
refresh_field(cur_frm.cscript.fname);
}
}
}
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;

View File

@ -144,4 +144,7 @@ cur_frm.fields_dict['ref_rate_details'].grid.onrowadd = function(doc, cdt, cdn){
}
cur_frm.fields_dict.item_customer_details.grid.get_field("customer_name").get_query =
erpnext.utils.customer_query;
erpnext.utils.customer_query;
cur_frm.fields_dict.item_supplier_details.grid.get_field("supplier").get_query =
erpnext.utils.supplier_query;

View File

@ -69,4 +69,6 @@ cur_frm.fields_dict['item_code'].get_query = function(doc,cdt,cdn) {
AND `tabItem`.%(key)s LIKE "%s" ORDER BY `tabItem`.`name` ASC LIMIT 50';
}
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;

View File

@ -231,4 +231,6 @@ cur_frm.cscript.validate_items = function(doc) {
}
}
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;

View File

@ -138,4 +138,6 @@ cur_frm.cscript.hide_dialog = function() {
cur_frm.communication_list.run();
}
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;

View File

@ -41,4 +41,6 @@ cur_frm.cscript.hide_dialog = function() {
cur_frm.address_list.run();
}
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;

View File

@ -43,3 +43,5 @@ cur_frm.cscript.hide_dialog = function() {
}
cur_frm.fields_dict.customer.get_query = erpnext.utils.customer_query;
cur_frm.fields_dict.supplier.get_query = erpnext.utils.supplier_query;