diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py index 78e6dd2f2a6..53d93704e7e 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py @@ -778,7 +778,9 @@ class SerialandBatchBundle(Document): (parent.warehouse == self.warehouse) & (parent.voucher_type == "Stock Reconciliation") ) elif batches: - future_entries = future_entries.where(child.batch_no.isin(batches)) + future_entries = future_entries.where( + (child.batch_no.isin(batches)) & (parent.warehouse == self.warehouse) + ) future_entries = future_entries.run(as_dict=True)