Skip to content

Commit

Permalink
refactor: update clearance date in payment entry
Browse files Browse the repository at this point in the history
(cherry picked from commit c218f75)
  • Loading branch information
kavin-114 authored and mergify[bot] committed Sep 24, 2024
1 parent 9d2cbcc commit 8bc76ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions erpnext/accounts/doctype/bank_clearance/bank_clearance.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,9 @@ def update_clearance_date(self):
)

else:
payment_entry = frappe.get_doc(d.payment_document, d.payment_entry)
payment_entry.db_set("clearance_date", d.clearance_date)
frappe.db.set_value(
d.payment_document, d.payment_entry, "clearance_date", d.clearance_date
)

clearance_date_updated = True

Expand Down

0 comments on commit 8bc76ba

Please sign in to comment.