Skip to content

Commit

Permalink
fix: update query
Browse files Browse the repository at this point in the history
(cherry picked from commit 854e37c)
  • Loading branch information
rs-rethik authored and mergify[bot] committed Dec 23, 2024
1 parent 13123a0 commit 3ab4acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/controllers/accounts_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ def on_trash(self):
(gle.voucher_type == self.doctype) & (gle.voucher_no == self.name)
).run()
sle = frappe.qb.DocType("Stock Ledger Entry")
frappe.qb.from_(gle).delete().where(
frappe.qb.from_(sle).delete().where(
(sle.voucher_type == self.doctype) & (sle.voucher_no == self.name)
).run()

Expand Down

0 comments on commit 3ab4acf

Please sign in to comment.