SO search query in DN: currency check removed
diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.js b/erpnext/stock/doctype/delivery_note/delivery_note.js
index 4be65ae..ce5f9dd 100644
--- a/erpnext/stock/doctype/delivery_note/delivery_note.js
+++ b/erpnext/stock/doctype/delivery_note/delivery_note.js
@@ -160,13 +160,9 @@
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';
+ cond = '`tabSales Order`.customer = "'+doc.customer+'" and';
}
- else {
- if(doc.currency) cond = '`tabSales Order`.currency = "'+doc.currency+'" and';
- else cond = '';
- }
+
if(doc.project_name){
cond += '`tabSales Order`.project_name ="'+doc.project_name+'"';
}