mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-03 00:23:21 +00:00
fix(stock): ignore cancelled batch entries in valuation (#58659)
This commit is contained in:
@@ -947,6 +947,7 @@ class BatchNoValuation(DeprecatedBatchNoValuation):
|
||||
& (child.warehouse == self.sle.warehouse)
|
||||
& (child.batch_no.isin(self.batchwise_valuation_batches))
|
||||
& (child.docstatus == 1)
|
||||
& (child.is_cancelled == 0)
|
||||
& (child.type_of_transaction.isin(["Inward", "Outward"]))
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user