Skip to content

Commit

Permalink
fix: incorrect idx on JE's after reconciliation
Browse files Browse the repository at this point in the history
(cherry picked from commit 72f577a)
  • Loading branch information
ruthra-kumar committed Aug 1, 2023
1 parent 43b85c5 commit 80eb875
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion erpnext/accounts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,11 @@ def update_reference_in_journal_entry(d, journal_entry, do_not_save=False):
# 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(
Expand Down

0 comments on commit 80eb875

Please sign in to comment.