Skip to content

Commit 54f20de

Browse files
authored
fix: duplicate entries being shown in batch exists in future transact… (#54604)
fix: duplicate entries being shown in batch exists in future transactions msg
1 parent f8893b0 commit 54f20de

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)