Skip to content

Commit

Permalink
Merge pull request #44891 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-44889

refactor: use db_set instead of set_value to trigger notification (backport #44889)
  • Loading branch information
ruthra-kumar authored Dec 24, 2024
2 parents 57e6ed4 + 69ed2a9 commit 7a81c0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions erpnext/accounts/doctype/bank_clearance/bank_clearance.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def update_clearance_date(self):
)

else:
frappe.db.set_value(
d.payment_document, d.payment_entry, "clearance_date", d.clearance_date
)
# using db_set to trigger notification
payment_entry = frappe.get_doc(d.payment_document, d.payment_entry)
payment_entry.db_set("clearance_date", d.clearance_date)

clearance_date_updated = True

Expand Down

0 comments on commit 7a81c0f

Please sign in to comment.