From 54f20de7e3f261b311338475740e8c082b69beb3 Mon Sep 17 00:00:00 2001 From: Mihir Kandoi Date: Tue, 28 Apr 2026 21:58:53 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20duplicate=20entries=20being=20shown=20in?= =?UTF-8?q?=20batch=20exists=20in=20future=20transact=E2=80=A6=20(#54604)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: duplicate entries being shown in batch exists in future transactions msg --- .../doctype/serial_and_batch_bundle/serial_and_batch_bundle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py index cc2555fa1c7..7b44aed459c 100644 --- a/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py +++ b/erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py @@ -931,6 +931,7 @@ class SerialandBatchBundle(Document): parent.voucher_type, parent.voucher_no, ) + .distinct() .where( (child.parent != self.name) & (parent.item_code == self.item_code)