fix: General Ledger and TB opening entries mismatch issues

This commit is contained in:
Deepesh Garg
2022-06-23 22:03:09 +05:30
committed by Nabin Hait
parent 1d683ca9f2
commit 6acd0325be
4 changed files with 4 additions and 37 deletions

View File

@@ -425,7 +425,7 @@ def get_accountwise_gle(filters, accounting_dimensions, gl_entries, gle_map):
update_value_in_dict(totals, "opening", gle)
update_value_in_dict(totals, "closing", gle)
elif gle.posting_date <= to_date:
elif gle.posting_date <= to_date or (cstr(gle.is_opening) == "Yes" and show_opening_entries):
if not group_by_voucher_consolidated:
update_value_in_dict(gle_map[group_by_value].totals, "total", gle)
update_value_in_dict(gle_map[group_by_value].totals, "closing", gle)