Added finance book filter logic in general_ledger.py
This commit is contained in:
parent
460d96f16d
commit
57856b475c
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user