fix: do not delete batches implicitly

This commit is contained in:
Rohit Waghchaure
2024-01-25 11:27:14 +05:30
parent 16dc8232f2
commit 9a5995a3e5
4 changed files with 15 additions and 8 deletions

View File

@@ -402,11 +402,6 @@ class StockController(AccountsController):
d.batch_no = None
d.db_set("batch_no", None)
for data in frappe.get_all(
"Batch", {"reference_name": self.name, "reference_doctype": self.doctype}
):
frappe.delete_doc("Batch", data.name)
def get_sl_entries(self, d, args):
sl_dict = frappe._dict(
{