Added match condition in general ledger report

This commit is contained in:
Nabin Hait 2014-01-09 12:44:44 +05:30
parent d659343541
commit 4bbf91bea1

View File

@ -72,6 +72,11 @@ def get_conditions(filters):
if filters.get("voucher_no"):
conditions.append("voucher_no=%(voucher_no)s")
from webnotes.widgets.reportview import build_match_conditions
match_conditions = build_match_conditions("GL Entry")
if match_conditions: conditions.append(match_conditions)
return "and {}".format(" and ".join(conditions)) if conditions else ""