Skip to content

Commit

Permalink
fix: ignore linked ledger entry record on employee advance cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
AyshaHakeem committed Nov 20, 2024
1 parent a53a9a7 commit 6d19abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/hr/doctype/employee_advance/employee_advance.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def validate(self):
self.set_pending_amount()

def on_cancel(self):
self.ignore_linked_doctypes = "GL Entry"
self.ignore_linked_doctypes = ("GL Entry", "Payment Ledger Entry")
self.check_linked_payment_entry()
self.set_status(update=True)

Expand Down

0 comments on commit 6d19abc

Please sign in to comment.