Merge pull request #36342 from frappe/mergify/bp/version-14-hotfix/pr-36327

fix: GL Entries should not be split based on cost center allocation in PCV (#36327)
This commit is contained in:
Deepesh Garg
2023-07-27 12:00:59 +05:30
committed by GitHub

View File

@@ -105,6 +105,7 @@ def process_gl_map(gl_map, merge_entries=True, precision=None):
if not gl_map: if not gl_map:
return [] return []
if gl_map[0].voucher_type != "Period Closing Voucher":
gl_map = distribute_gl_based_on_cost_center_allocation(gl_map, precision) gl_map = distribute_gl_based_on_cost_center_allocation(gl_map, precision)
if merge_entries: if merge_entries: