mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 14:08:29 +00:00
SO search query in DN: currency check removed
This commit is contained in:
@@ -160,13 +160,9 @@ cur_frm.fields_dict['sales_order_no'].get_query = function(doc) {
|
||||
var cond = '';
|
||||
|
||||
if(doc.customer) {
|
||||
if(doc.currency) cond = '`tabSales Order`.customer = "'+doc.customer+'" and `tabSales Order`.currency = "'+doc.currency+'" and';
|
||||
else cond = '`tabSales Order`.customer = "'+doc.customer+'" and';
|
||||
}
|
||||
else {
|
||||
if(doc.currency) cond = '`tabSales Order`.currency = "'+doc.currency+'" and';
|
||||
else cond = '';
|
||||
cond = '`tabSales Order`.customer = "'+doc.customer+'" and';
|
||||
}
|
||||
|
||||
if(doc.project_name){
|
||||
cond += '`tabSales Order`.project_name ="'+doc.project_name+'"';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user