From 40371bf4c3b8dcf700ca99b3ecb83cb1a50fab99 Mon Sep 17 00:00:00 2001 From: HarryPaulo Date: Tue, 2 Apr 2024 18:42:30 -0300 Subject: [PATCH 1/2] fix: notify update when update outstanding amount --- erpnext/accounts/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index acbe9b32f25..40590c5b8d5 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -1756,6 +1756,7 @@ def update_voucher_outstanding(voucher_type, voucher_no, account, party_type, pa ) ref_doc.set_status(update=True) + ref_doc.notify_update() def delink_original_entry(pl_entry): -- GitLab From 06a28a0d608f04ca867d8a91b5d0750f716ac231 Mon Sep 17 00:00:00 2001 From: HarryPaulo Date: Tue, 2 Apr 2024 18:50:51 -0300 Subject: [PATCH 2/2] fix: notify update when update outstanding amount - Linters --- erpnext/accounts/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py index 40590c5b8d5..055dbba8cce 100644 --- a/erpnext/accounts/utils.py +++ b/erpnext/accounts/utils.py @@ -1759,7 +1759,7 @@ def update_voucher_outstanding(voucher_type, voucher_no, account, party_type, pa ref_doc.notify_update() -def delink_original_entry(pl_entry): +def delink_original_entry(pl_entry, partial_cancel=False): if pl_entry: ple = qb.DocType("Payment Ledger Entry") query = ( -- GitLab