Merge pull request #36327 from nabinhait/pcv-fix

fix: GL Entries should not be split based on cost center allocation in PCV
This commit is contained in:
Nabin Hait 2023-07-27 11:33:06 +05:30 committed by GitHub
commit 56e7cc7e05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)