Added match condition in general ledger report
This commit is contained in:
parent
d659343541
commit
4bbf91bea1
@ -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 ""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user