mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +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"):
|
if filters.get("project"):
|
||||||
conditions.append("project=%(project)s")
|
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
|
from frappe.desk.reportview import build_match_conditions
|
||||||
match_conditions = build_match_conditions("GL Entry")
|
match_conditions = build_match_conditions("GL Entry")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user