commit | 205fd9888cb943340a4bddb0ea10258fc882e75f | [log] [tgz] |
---|---|---|
author | ruthra kumar <ruthra@erpnext.com> | Fri Apr 12 09:26:46 2024 +0530 |
committer | ruthra kumar <ruthra@erpnext.com> | Fri Apr 12 09:26:46 2024 +0530 |
tree | c52da4a796cd8c7f8bc838c284cc72dd0d67eca9 | |
parent | 5446ed7642934139370cf5f0a54234c9d384b044 [diff] |
fix: Link Validation Error on Dunning cancellation
diff --git a/erpnext/accounts/doctype/dunning/dunning.py b/erpnext/accounts/doctype/dunning/dunning.py index f7c4d90..260ede5 100644 --- a/erpnext/accounts/doctype/dunning/dunning.py +++ b/erpnext/accounts/doctype/dunning/dunning.py
@@ -146,6 +146,10 @@ ) row.dunning_level = len(past_dunnings) + 1 + def on_cancel(self): + super().on_cancel() + self.ignore_linked_doctypes = ["GL Entry"] + def resolve_dunning(doc, state): """