mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-16 13:32:13 +00:00
@@ -384,7 +384,7 @@ class AccountsController(TransactionBase):
|
|||||||
(gle.voucher_type == self.doctype) & (gle.voucher_no == self.name)
|
(gle.voucher_type == self.doctype) & (gle.voucher_no == self.name)
|
||||||
).run()
|
).run()
|
||||||
sle = frappe.qb.DocType("Stock Ledger Entry")
|
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)
|
(sle.voucher_type == self.doctype) & (sle.voucher_no == self.name)
|
||||||
).run()
|
).run()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user