From c924feb0d0ad206423fc959b83ce4aa948ece592 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Sat, 4 Jan 2025 12:58:07 +0530 Subject: [PATCH] fix: consider expired batches in stock reco (cherry picked from commit f51c9f578c04965a856de9da78e0a24cf33620f0) --- .../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 12773a5555d..9e23270ca71 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -1093,6 +1093,7 @@ class StockReconciliation(StockController): posting_date=doc.posting_date, posting_time=doc.posting_time, ignore_voucher_nos=[doc.voucher_no], + for_stock_levels=True, ) or 0 ) * -1