From 3ac8e59cb8ccec2352985082b2191882a583157c Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 23 Jan 2013 13:59:29 +0530 Subject: [PATCH] fixes in payment reconciliation --- .../payment_to_invoice_matching_tool.js | 17 ----------------- 1 file changed, 17 deletions(-) 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 17b42bec87..a12fe27b9c 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 @@ -30,23 +30,6 @@ cur_frm.cscript.refresh = function(doc) { } } -// cur_frm.fields_dict.voucher_no.get_query = function(doc) { -// if (!doc.account) msgprint("Please select Account first"); -// else { -// return repl("select gle.voucher_no, gle.posting_date \ -// from `tabGL Entry` gle where gle.account = '%(acc)s' \ -// and gle.voucher_type = '%(dt)s' \ -// and gle.voucher_no LIKE '%s' \ -// and ifnull(gle.is_cancelled, 'No') = 'No'\ -// and (ifnull(against_voucher_type, '') = '' or \ -// (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 )\ -// ORDER BY gle.posting_date DESC, gle.voucher_no DESC LIMIT 50 \ -// ", {dt:doc.voucher_type, acc:doc.account}); -// } -// } - cur_frm.fields_dict.voucher_no.get_query = function(doc) { if (!doc.account) msgprint("Please select Account first"); else {