Merge branch 'version-13-beta-pre-release' into version-13-beta
diff --git a/erpnext/patches/v13_0/update_pos_closing_entry_in_merge_log.py b/erpnext/patches/v13_0/update_pos_closing_entry_in_merge_log.py
index 42bca7c..262e38d 100644
--- a/erpnext/patches/v13_0/update_pos_closing_entry_in_merge_log.py
+++ b/erpnext/patches/v13_0/update_pos_closing_entry_in_merge_log.py
@@ -15,7 +15,7 @@
log.pos_closing_entry = (
SELECT clo_ref.parent FROM `tabPOS Invoice Reference` clo_ref
WHERE clo_ref.pos_invoice = log_ref.pos_invoice
- AND clo_ref.parenttype = 'POS Closing Entry'
+ AND clo_ref.parenttype = 'POS Closing Entry' LIMIT 1
)
WHERE
log_ref.parent = log.name