mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-09 23:39:28 +00:00
fix(stock): ignore cancelled batch entries in valuation (#58659)
(cherry picked from commit a9b857bdfe)
# Conflicts:
# erpnext/stock/serial_batch_bundle.py
Co-authored-by: Pandiyan P <pandiyanpalani37@gmail.com>
This commit is contained in:
@@ -943,6 +943,7 @@ class BatchNoValuation(DeprecatedBatchNoValuation):
|
|||||||
& (child.warehouse == self.sle.warehouse)
|
& (child.warehouse == self.sle.warehouse)
|
||||||
& (child.batch_no.isin(self.batchwise_valuation_batches))
|
& (child.batch_no.isin(self.batchwise_valuation_batches))
|
||||||
& (child.docstatus == 1)
|
& (child.docstatus == 1)
|
||||||
|
& (child.is_cancelled == 0)
|
||||||
& (child.type_of_transaction.isin(["Inward", "Outward"]))
|
& (child.type_of_transaction.isin(["Inward", "Outward"]))
|
||||||
)
|
)
|
||||||
.for_update()
|
.for_update()
|
||||||
|
|||||||
Reference in New Issue
Block a user