Skip to content

Commit

Permalink
fix: GL Entries should not be splitted based on cost center allocatio…
Browse files Browse the repository at this point in the history
…n in PCV

(cherry picked from commit 666d961)
  • Loading branch information
nabinhait authored and mergify[bot] committed Jul 27, 2023
1 parent c3c7dd8 commit ade13e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/accounts/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ade13e6

Please sign in to comment.