From 699e93e17f61b9530c0670980de52b0f54473aec Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 13 Feb 2023 10:19:19 +0530 Subject: [PATCH] fix: Ignore Payment Ledger Entry on dunning cancel (backport #34025) (#34028) fix: Ignore Payment Ledger Entry on dunning cancel (#34025) * fix: Ignore Payment Ledger Entry on dunning cancel * chore: fix translation issue (cherry picked from commit 48bb2c942bfca2ad19d0b32d663f237245480696) Co-authored-by: Deepesh Garg --- erpnext/accounts/doctype/dunning/dunning.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/doctype/dunning/dunning.py b/erpnext/accounts/doctype/dunning/dunning.py index 9874d66fa55..7347865563a 100644 --- a/erpnext/accounts/doctype/dunning/dunning.py +++ b/erpnext/accounts/doctype/dunning/dunning.py @@ -40,7 +40,7 @@ class Dunning(AccountsController): def on_cancel(self): if self.dunning_amount: - self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry") + self.ignore_linked_doctypes = ("GL Entry", "Stock Ledger Entry", "Payment Ledger Entry") make_reverse_gl_entries(voucher_type=self.doctype, voucher_no=self.name) def make_gl_entries(self):