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 cf46867d64e..35cdae457b8 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 @@ -774,7 +774,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)