From 3b5fe403b1f68915a63f58103ca4202f4d19b83f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 25 Mar 2013 17:03:51 +0530 Subject: [PATCH] [stock] [feature] added project to stock ledger entry and updated stock balance report --- webnotes/widgets/report_dump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webnotes/widgets/report_dump.py b/webnotes/widgets/report_dump.py index 99e20f241f..9b3fc5857c 100644 --- a/webnotes/widgets/report_dump.py +++ b/webnotes/widgets/report_dump.py @@ -51,8 +51,8 @@ def get_data(doctypes, last_modified): if not args.get("conditions"): args['conditions'] = [] args['conditions'].append(modified_table + "modified > '" + last_modified[d] + "'") - out[dt]["modified_names"] = webnotes.conn.sql_list("""select name from %s - where modified > %s""" % (table, "%s"), last_modified[d]) + out[dt]["modified_names"] = webnotes.conn.sql_list("""select %sname from %s + where %smodified > %s""" % (modified_table, table, modified_table, "%s"), last_modified[d]) if args.get("force_index"): conditions = " force index (%s) " % args["force_index"]