fix: update query

(cherry picked from commit 854e37c05c)
This commit is contained in:
rs-rethik
2024-12-20 14:00:54 +05:30
committed by Mergify
parent 33a1da8194
commit 49e3865265

View File

@@ -351,7 +351,7 @@ class AccountsController(TransactionBase):
(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()