[fix] [minor] added price list in supplier form and filtered customer and supplier for selling and buying respectively
This commit is contained in:
parent
5da0395779
commit
a2fbe5cfd2
@ -91,4 +91,10 @@ cur_frm.cscript.make_contact = function() {
|
|||||||
// note: render_contact_row is defined in contact_control.js
|
// note: render_contact_row is defined in contact_control.js
|
||||||
}
|
}
|
||||||
cur_frm.contact_list.run();
|
cur_frm.contact_list.run();
|
||||||
|
}
|
||||||
|
|
||||||
|
cur_frm.fields_dict['default_price_list'].get_query = function(doc,cdt,cdn) {
|
||||||
|
return{
|
||||||
|
filters:{'buying_or_selling': "Buying"}
|
||||||
|
}
|
||||||
}
|
}
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"creation": "2013-01-10 16:34:11",
|
"creation": "2013-01-10 16:34:11",
|
||||||
"docstatus": 0,
|
"docstatus": 0,
|
||||||
"modified": "2013-11-03 14:01:43",
|
"modified": "2013-11-19 11:31:28",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"owner": "Administrator"
|
"owner": "Administrator"
|
||||||
},
|
},
|
||||||
@ -153,6 +153,13 @@
|
|||||||
"reqd": 1,
|
"reqd": 1,
|
||||||
"search_index": 0
|
"search_index": 0
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"doctype": "DocField",
|
||||||
|
"fieldname": "default_price_list",
|
||||||
|
"fieldtype": "Link",
|
||||||
|
"label": "Price List",
|
||||||
|
"options": "Price List"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"doctype": "DocField",
|
"doctype": "DocField",
|
||||||
"fieldname": "default_currency",
|
"fieldname": "default_currency",
|
||||||
|
@ -110,7 +110,7 @@ cur_frm.cscript.make_contact = function() {
|
|||||||
cur_frm.fields_dict['customer_group'].get_query = function(doc,dt,dn) {
|
cur_frm.fields_dict['customer_group'].get_query = function(doc,dt,dn) {
|
||||||
return{
|
return{
|
||||||
filters:{'is_group': 'No'}
|
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"
|
query:"controllers.queries.lead_query"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cur_frm.fields_dict['default_price_list'].get_query = function(doc,cdt,cdn) {
|
||||||
|
return{
|
||||||
|
filters:{'buying_or_selling': "Selling"}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user