From eddb91e9b23ec5dbf497375b32eb8974d3e9135e Mon Sep 17 00:00:00 2001 From: Dany Robert Date: Fri, 24 Nov 2023 05:27:13 +0000 Subject: [PATCH] fix: batch negative qty issue --- erpnext/stock/stock_ledger.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/stock_ledger.py b/erpnext/stock/stock_ledger.py index 9142a27f4c09..482bc3a59690 100644 --- a/erpnext/stock/stock_ledger.py +++ b/erpnext/stock/stock_ledger.py @@ -1799,6 +1799,7 @@ def get_future_sle_with_negative_batch_qty(args): item_code = %(item_code)s and warehouse = %(warehouse)s and batch_no=%(batch_no)s + and voucher_no != %(voucher_no)s and is_cancelled = 0 order by posting_date, posting_time, creation )