mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
Merge pull request #49687 from rohitwaghchaure/fixed-warehouse-validation
fix: warehouse for batch validation
This commit is contained in:
@@ -778,7 +778,9 @@ class SerialandBatchBundle(Document):
|
|||||||
(parent.warehouse == self.warehouse) & (parent.voucher_type == "Stock Reconciliation")
|
(parent.warehouse == self.warehouse) & (parent.voucher_type == "Stock Reconciliation")
|
||||||
)
|
)
|
||||||
elif batches:
|
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)
|
future_entries = future_entries.run(as_dict=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user