mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 21:19:19 +00:00
refactor: ignore internal doctypes on Dunning cancellation
This commit is contained in:
@@ -148,7 +148,19 @@ class Dunning(AccountsController):
|
|||||||
|
|
||||||
def on_cancel(self):
|
def on_cancel(self):
|
||||||
super().on_cancel()
|
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):
|
def resolve_dunning(doc, state):
|
||||||
|
|||||||
Reference in New Issue
Block a user