mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 23:31:20 +00:00
Added finance book filter logic in general_ledger.py
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user