refactor: pass filter to General Ledger

(cherry picked from commit 90880c8c01)
This commit is contained in:
ruthra kumar
2024-08-13 10:42:32 +05:30
committed by Mergify
parent 1ebcc33cdd
commit cef3573d79

View File

@@ -136,6 +136,9 @@ def get_statement_dict(doc, get_statement_dict=False):
if doc.ignore_exchange_rate_revaluation_journals:
filters.update({"ignore_err": True})
if doc.ignore_cr_dr_notes:
filters.update({"ignore_cr_dr_notes": True})
if doc.report == "General Ledger":
filters.update(get_gl_filters(doc, entry, tax_id, presentation_currency))
col, res = get_soa(filters)