From ec44cd763ebc3e19f792a3af4d55d9f30305973f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 21 Jan 2013 12:29:20 +0530 Subject: [PATCH] in payment matching tool only show outstanding invoices --- .../payment_to_invoice_matching_tool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.js b/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.js index 3bbadcb635..f719db97aa 100644 --- a/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.js +++ b/accounts/doctype/payment_to_invoice_matching_tool/payment_to_invoice_matching_tool.js @@ -40,7 +40,7 @@ cur_frm.fields_dict.voucher_no.get_query = function(doc) { and ifnull(gle.is_cancelled, 'No') = 'No'\ and (select sum(debit) - sum(credit) from `tabGL Entry` \ where against_voucher_type = '%(dt)s' and against_voucher = gle.voucher_no \ - and ifnull(is_cancelled, 'No') = 'No') > 0 \ + and ifnull(is_cancelled, 'No') = 'No') != 0 \ ORDER BY gle.posting_date DESC, gle.voucher_no DESC LIMIT 50 \ ", {dt:doc.voucher_type, acc:doc.account}); }