[accounts] [fix] aganist_jv query error
This commit is contained in:
parent
265c1947e3
commit
f5784e785a
@ -375,7 +375,7 @@ def get_against_sales_invoice(doctype, txt, searchfield, start, page_len, filter
|
||||
(filters["account"], "%%%s%%" % txt, start, page_len))
|
||||
|
||||
def get_against_jv(doctype, txt, searchfield, start, page_len, filters):
|
||||
return webnotes.conn.sql("""select name, posting_date, user_remark
|
||||
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
|
||||
and jv.%s like %s order by jv.name desc limit %s, %s""" %
|
||||
|
Loading…
Reference in New Issue
Block a user