[fix] [minor] added price list in supplier form and filtered customer and supplier for selling and buying respectively

This commit is contained in:
Akhilesh Darjee
2013-11-19 11:45:55 +05:30
parent 5da0395779
commit a2fbe5cfd2
3 changed files with 21 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ cur_frm.cscript.make_contact = function() {
cur_frm.fields_dict['customer_group'].get_query = function(doc,dt,dn) {
return{
filters:{'is_group': 'No'}
}
}
}
@@ -119,3 +119,9 @@ cur_frm.fields_dict.lead_name.get_query = function(doc,cdt,cdn) {
query:"controllers.queries.lead_query"
}
}
cur_frm.fields_dict['default_price_list'].get_query = function(doc,cdt,cdn) {
return{
filters:{'buying_or_selling': "Selling"}
}
}