Skip to content

Commit

Permalink
Merge pull request #2432 from AyshaHakeem/fix-advance
Browse files Browse the repository at this point in the history
fix: ignore linked ledger entry record on employee advance cancellation
  • Loading branch information
mergify[bot] authored Nov 20, 2024
2 parents a53a9a7 + 6d19abc commit ff44362
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 ff44362

Please sign in to comment.