From 666d96187557e0dd26bad99d07aa5b1899b9bc62 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 26 Jul 2023 13:03:29 +0530 Subject: [PATCH] fix: GL Entries should not be splitted based on cost center allocation in PCV --- erpnext/accounts/general_ledger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/accounts/general_ledger.py b/erpnext/accounts/general_ledger.py index e9dc5fc0cc..b942a0cbfd 100644 --- a/erpnext/accounts/general_ledger.py +++ b/erpnext/accounts/general_ledger.py @@ -105,7 +105,8 @@ def process_gl_map(gl_map, merge_entries=True, precision=None): if not gl_map: return [] - gl_map = distribute_gl_based_on_cost_center_allocation(gl_map, precision) + if gl_map[0].voucher_type != "Period Closing Voucher": + gl_map = distribute_gl_based_on_cost_center_allocation(gl_map, precision) if merge_entries: gl_map = merge_similar_entries(gl_map, precision)