From 00b9df0bc5199d6c08d14cf7dd4f9f4d01ec93c2 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 8 Aug 2023 16:04:52 +0530 Subject: [PATCH] fix: stock reconciliation negative stock error (backport #36544) (#36549) fix: stock reconciliation negative stock error (#36544) fix: stock reco negative stock error (cherry picked from commit 0b36e7d10ec42a4baac2af8f41a2817ed06b711d) Co-authored-by: rohitwaghchaure --- .../stock/doctype/stock_reconciliation/stock_reconciliation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py index 3fd4cec5d884..c6c8571b9efa 100644 --- a/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py +++ b/erpnext/stock/doctype/stock_reconciliation/stock_reconciliation.py @@ -607,7 +607,7 @@ def recalculate_current_qty(self, item_code, batch_no): ) if sl_entries: - self.make_sl_entries(sl_entries) + self.make_sl_entries(sl_entries, allow_negative_stock=True) def get_batch_qty_for_stock_reco(