From 2e78e14c7e8e02247c307875345264e21236ba70 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:35:23 +0530 Subject: [PATCH] fix: consider expired batches in the stock reco (backport #47909) (#47919) fix: consider expired batches in the stock reco (#47909) (cherry picked from commit 8fa34739458164a51f3927fb1acdcc924b574f92) Co-authored-by: rohitwaghchaure --- .../stock/doctype/stock_reconciliation/stock_reconciliation.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py index 4ea683a904d..d958fecf9d2 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -286,6 +286,7 @@ class StockReconciliation(StockController): "warehouse": item.warehouse, "posting_date": self.posting_date, "posting_time": self.posting_time, + "for_stock_levels": True, "ignore_voucher_nos": [self.name], } )