mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 12:39:18 +00:00
[fix] [minor] added price list in supplier form and filtered customer and supplier for selling and buying respectively
This commit is contained in:
@@ -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"}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user