Added finance book filter logic in general_ledger.py

This commit is contained in:
Gaurav Naik 2018-04-23 02:29:48 +05:30 committed by Nabin Hait
parent 460d96f16d
commit 57856b475c

View File

@ -164,6 +164,11 @@ def get_conditions(filters):
if filters.get("project"):
conditions.append("project=%(project)s")
if filters.get("finance_book"):
conditions.append("finance_book=%(finance_book)s")
else:
conditions.append("ifnull(finance_book, '')=''")
from frappe.desk.reportview import build_match_conditions
match_conditions = build_match_conditions("GL Entry")