diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py index 90ff5b12560e..cdf625344c9e 100644 --- a/erpnext/accounts/doctype/payment_entry/payment_entry.py +++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py @@ -188,6 +188,7 @@ def on_submit(self): self.update_outstanding_amounts() self.update_advance_paid() self.update_payment_schedule() + self.set_payment_req_status() self.set_status() def set_liability_account(self): diff --git a/erpnext/hooks.py b/erpnext/hooks.py index 013cfb1f3a70..b3cfb358d270 100644 --- a/erpnext/hooks.py +++ b/erpnext/hooks.py @@ -349,7 +349,6 @@ "Payment Entry": { "on_submit": [ "erpnext.regional.create_transaction_log", - "erpnext.accounts.doctype.payment_request.payment_request.update_payment_req_status", "erpnext.accounts.doctype.dunning.dunning.resolve_dunning", ], "on_cancel": ["erpnext.accounts.doctype.dunning.dunning.resolve_dunning"],