Skip to content

Commit

Permalink
fix: allow regional gl in payment entry for gl preview (#38136)
Browse files Browse the repository at this point in the history
fix: allow regional gl in payment entry for gl preview (#38136)

(cherry picked from commit 7e43d7b)

Co-authored-by: Smit Vora <smitvora203@gmail.com>
  • Loading branch information
mergify[bot] and vorasmit authored Nov 17, 2023
1 parent a699f8b commit 20e15eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ def build_gl_map(self):
self.add_bank_gl_entries(gl_entries)
self.add_deductions_gl_entries(gl_entries)
self.add_tax_gl_entries(gl_entries)
add_regional_gl_entries(gl_entries, self)
return gl_entries

def make_gl_entries(self, cancel=0, adv_adj=0):
Expand Down Expand Up @@ -2610,3 +2611,8 @@ def set_missing_values(source, target):
)

return doclist


@erpnext.allow_regional
def add_regional_gl_entries(gl_entries, doc):
return

0 comments on commit 20e15eb

Please sign in to comment.