From 176d980764f136025d33888aed552746f589054f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 28 Apr 2026 22:23:03 +0530 Subject: [PATCH] =?UTF-8?q?fix:=20duplicate=20entries=20being=20shown=20in?= =?UTF-8?q?=20batch=20exists=20in=20future=20transact=E2=80=A6=20(backport?= =?UTF-8?q?=20#54604)=20(#54605)?= 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 transact… (#54604) fix: duplicate entries being shown in batch exists in future transactions msg (cherry picked from commit 54f20de7e3f261b311338475740e8c082b69beb3) Co-authored-by: Mihir Kandoi --- .../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 b0b8c221f8e..8cf96a149d7 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 @@ -925,6 +925,7 @@ class SerialandBatchBundle(Document): parent.voucher_type, parent.voucher_no, ) + .distinct() .where( (child.parent != self.name) & (parent.item_code == self.item_code)