Skip to content

Commit 1111771

Browse files
fix: duplicate entries being shown in batch exists in future transact… (backport #54604) (#54606)
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 54f20de) Co-authored-by: Mihir Kandoi <kandoimihir@gmail.com>
1 parent 90b07b3 commit 1111771

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

erpnext/stock/doctype/serial_and_batch_bundle/serial_and_batch_bundle.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,7 @@ def check_future_entries_exists(self, is_cancelled=False):
931931
parent.voucher_type,
932932
parent.voucher_no,
933933
)
934+
.distinct()
934935
.where(
935936
(child.parent != self.name)
936937
& (parent.item_code == self.item_code)

0 commit comments

Comments
 (0)