fix(stock): ignore cancelled batch entries in valuation (#58659)

This commit is contained in:
Pandiyan P
2026-09-01 21:19:51 +05:30
committed by GitHub
parent a20fc4f931
commit a9b857bdfe

View File

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