From 7916d6436f2152e90ec5d2f8de3416937c6de800 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 9 Jul 2024 12:13:19 +0530 Subject: [PATCH] fix: auto serial and batch bundle not creating for Asset Capitalization (backport #42231) (#42242) fix: auto serial and batch bundle not creating for Asset Capitalization (#42231) (cherry picked from commit 5f53ad311743cee4539411aba73444ad6f292606) Co-authored-by: rohitwaghchaure --- erpnext/controllers/stock_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index 212c9adf4af..1620fa3bfff 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -218,7 +218,7 @@ class StockController(AccountsController): "do_not_submit": True if not via_landed_cost_voucher else False, } - if row.get("qty") or row.get("consumed_qty"): + if row.get("qty") or row.get("consumed_qty") or row.get("stock_qty"): self.update_bundle_details(bundle_details, table_name, row) self.create_serial_batch_bundle(bundle_details, row)