diff --git a/erpnext/accounts/doctype/dunning/dunning.py b/erpnext/accounts/doctype/dunning/dunning.py index 260ede57c4e2c6ba543766d5e7a34e1c69d3ec0b..36c517a4782cb36a2b1cbead5fd9cd8d0da7abf7 100644 --- a/erpnext/accounts/doctype/dunning/dunning.py +++ b/erpnext/accounts/doctype/dunning/dunning.py @@ -148,7 +148,19 @@ class Dunning(AccountsController): def on_cancel(self): super().on_cancel() - self.ignore_linked_doctypes = ["GL Entry"] + self.ignore_linked_doctypes = [ + "GL Entry", + "Stock Ledger Entry", + "Repost Item Valuation", + "Repost Payment Ledger", + "Repost Payment Ledger Items", + "Repost Accounting Ledger", + "Repost Accounting Ledger Items", + "Unreconcile Payment", + "Unreconcile Payment Entries", + "Payment Ledger Entry", + "Serial and Batch Bundle", + ] def resolve_dunning(doc, state):