Merge pull request #36126 from ruthra-kumar/idx_issue_upon_journal_reconciliation

fix: incorrect `idx` on Journals after reconciliation
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index e354663..ae0a279 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -576,7 +576,11 @@
 	# new row with references
 	new_row = journal_entry.append("accounts")
 
-	new_row.update((frappe.copy_doc(jv_detail)).as_dict())
+	# Copy field values into new row
+	[
+		new_row.set(field, jv_detail.get(field))
+		for field in frappe.get_meta("Journal Entry Account").get_fieldnames_with_value()
+	]
 
 	new_row.set(d["dr_or_cr"], d["allocated_amount"])
 	new_row.set(