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

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 54f20de7e3)

Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
This commit is contained in:
mergify[bot]
2026-04-28 22:23:03 +05:30
committed by GitHub
parent 44af175556
commit 176d980764

View File

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