fix: duplicate entries being shown in batch exists in future transact… (#54604)

fix: duplicate entries being shown in batch exists in future transactions msg
This commit is contained in:
Mihir Kandoi
2026-04-28 21:58:53 +05:30
committed by GitHub
parent f8893b04d5
commit 54f20de7e3

View File

@@ -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)