From b3d337a45b64586d46cae4fa6a91d9a5c8ca4e4c Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 20 Jun 2025 21:06:43 +0530 Subject: [PATCH] fix: SABB validation during the LCV (cherry picked from commit e958f886d310a4129beb0c849ae3dad0f3ab31c6) --- erpnext/controllers/stock_controller.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/erpnext/controllers/stock_controller.py b/erpnext/controllers/stock_controller.py index d6930312b77..667e07ab9ff 100644 --- a/erpnext/controllers/stock_controller.py +++ b/erpnext/controllers/stock_controller.py @@ -221,7 +221,11 @@ class StockController(AccountsController): parent_details = self.get_parent_details_for_packed_items() for row in self.get(table_name): - if row.serial_and_batch_bundle and (row.serial_no or row.batch_no): + if ( + not via_landed_cost_voucher + and row.serial_and_batch_bundle + and (row.serial_no or row.batch_no) + ): self.validate_serial_nos_and_batches_with_bundle(row) if not row.serial_no and not row.batch_no and not row.get("rejected_serial_no"):