From c0063a6e741c0ce5452124917edbf6b893d7f965 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Tue, 9 Dec 2014 17:03:13 +0530 Subject: [PATCH] sales Invoice- filter added for debit to --- erpnext/accounts/doctype/sales_invoice/sales_invoice.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js index d92f525e7a..f275d7d2da 100644 --- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.js +++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.js @@ -403,3 +403,12 @@ cur_frm.cscript.send_sms = function() { var sms_man = new SMSManager(cur_frm.doc); } +cur_frm.set_query("debit_to", function(doc) { + return{ + filters: [ + ['Account', 'root_type', '=', 'Asset'], + ['Account', 'account_type', '=', 'Receivable'] + ] + } +}); +