Skip to content

Commit 8058d74

Browse files
mergify[bot]AyshaHakeemruchamahabal
authored
fix: ignore linked ledger entry record on employee advance cancellation (backport #2432) (#2434)
Co-authored-by: Aysha <[email protected]> Co-authored-by: Rucha Mahabal <[email protected]>
1 parent d12f9dc commit 8058d74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hrms/hr/doctype/employee_advance/employee_advance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def validate(self):
3030
self.set_pending_amount()
3131

3232
def on_cancel(self):
33-
self.ignore_linked_doctypes = "GL Entry"
33+
self.ignore_linked_doctypes = ("GL Entry", "Payment Ledger Entry")
3434
self.set_status(update=True)
3535

3636
def set_status(self, update=False):

0 commit comments

Comments
 (0)