diff --git a/erpnext/stock/doctype/stock_entry/stock_entry.py b/erpnext/stock/doctype/stock_entry/stock_entry.py index d32d896d78d..0d5a803fa29 100644 --- a/erpnext/stock/doctype/stock_entry/stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/stock_entry.py @@ -376,6 +376,9 @@ class StockEntry(StockController, SubcontractingInwardController): def _set_serial_batch_for_disassembly_from_available_materials(self): available_materials = get_available_materials(self.work_order, self) for row in self.items: + if row.serial_no or row.batch_no or row.serial_and_batch_bundle: + continue + warehouse = row.s_warehouse or row.t_warehouse materials = available_materials.get((row.item_code, warehouse)) if not materials: