fix: apply gl report filters

(cherry picked from commit 5346c67b02)
This commit is contained in:
Gursheen Anand
2023-09-23 17:50:45 +05:30
committed by Mergify
parent d3c9a6d975
commit b4bc44db4a

View File

@@ -64,6 +64,7 @@ def get_report_pdf(doc, consolidated=True):
filters = get_common_filters(doc)
if doc.report == "General Ledger":
filters.update(get_gl_filters(doc, entry, tax_id, presentation_currency))
col, res = get_soa(filters)
for x in [0, -2, -1]:
res[x]["account"] = res[x]["account"].replace("'", "")