mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-26 06:31:13 +01:00
fix: warehouse for batch validation
(cherry picked from commit381072170a) (cherry picked from commitcb94c4b5f1)
This commit is contained in:
committed by
Mergify
parent
20d14881fe
commit
59a710433a
@@ -774,7 +774,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