mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
refactor: use db_set instead of set_value to trigger notification
(cherry picked from commit f8b923edfe)
This commit is contained in:
@@ -117,9 +117,9 @@ class BankClearance(Document):
|
|||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
frappe.db.set_value(
|
# using db_set to trigger notification
|
||||||
d.payment_document, d.payment_entry, "clearance_date", d.clearance_date
|
payment_entry = frappe.get_doc(d.payment_document, d.payment_entry)
|
||||||
)
|
payment_entry.db_set("clearance_date", d.clearance_date)
|
||||||
|
|
||||||
clearance_date_updated = True
|
clearance_date_updated = True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user