mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
[accounts] [fix] aganist_jv query error
This commit is contained in:
@@ -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):
|
def get_against_jv(doctype, txt, searchfield, start, page_len, filters):
|
||||||
return webnotes.conn.sql("""select jv.name, jv.posting_date, jv.user_remark
|
return webnotes.conn.sql("""select jv.name, jv.posting_date, jv.user_remark
|
||||||
from `tabJournal Voucher` jv, `tabJournal Voucher Detail` jv_detail
|
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""" %
|
and jv.%s like %s order by jv.name desc limit %s, %s""" %
|
||||||
("%s", searchfield, "%s", "%s", "%s"),
|
("%s", searchfield, "%s", "%s", "%s"),
|
||||||
(filters["account"], "%%%s%%" % txt, start, page_len))
|
(filters["account"], "%%%s%%" % txt, start, page_len))
|
||||||
Reference in New Issue
Block a user