From 08c33bd6bcdc4d72dafe3e216cff4c7967ab3d9c Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 26 Mar 2013 14:43:41 +0530 Subject: [PATCH] [accounts] [fix] aganist_jv query error --- accounts/doctype/journal_voucher/journal_voucher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounts/doctype/journal_voucher/journal_voucher.py b/accounts/doctype/journal_voucher/journal_voucher.py index 15976b851e..9b1ca7a105 100644 --- a/accounts/doctype/journal_voucher/journal_voucher.py +++ b/accounts/doctype/journal_voucher/journal_voucher.py @@ -377,7 +377,7 @@ def get_against_sales_invoice(doctype, txt, searchfield, start, page_len, filter def get_against_jv(doctype, txt, searchfield, start, page_len, filters): return webnotes.conn.sql("""select jv.name, jv.posting_date, jv.user_remark from `tabJournal Voucher` jv, `tabJournal Voucher Detail` jv_detail - where jv_detail.parent = jv.name and jv_detail.account = %s and docstatus = 1 + where jv_detail.parent = jv.name and jv_detail.account = %s and jv.docstatus = 1 and jv.%s like %s order by jv.name desc limit %s, %s""" % ("%s", searchfield, "%s", "%s", "%s"), (filters["account"], "%%%s%%" % txt, start, page_len)) \ No newline at end of file