From 577df1753e3fc9a6d7ab89f71d9fe8a462fc78ad Mon Sep 17 00:00:00 2001 From: marination Date: Thu, 27 Aug 2020 20:34:51 +0530 Subject: [PATCH] fix: Unlink and delete batch created from stock reco on cancel (cherry picked from commit fc353231065f1c33890d5b7e55c2e4e2506d986d) --- .../stock/doctype/stock_reconciliation/stock_reconciliation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py index 5d5a27f1ea..cb9aec2563 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -62,6 +62,7 @@ class StockReconciliation(StockController): self.make_sle_on_cancel() self.make_gl_entries_on_cancel() self.repost_future_sle_and_gle() + self.delete_auto_created_batches() def remove_items_with_no_change(self): """Remove items if qty or rate is not changed"""