Merge pull request #49688 from frappe/mergify/bp/version-15-hotfix/pr-49687

fix: warehouse for batch validation (backport #49687)
This commit is contained in:
rohitwaghchaure
2025-09-23 12:06:31 +05:30
committed by GitHub

View File

@@ -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)