diff --git a/erpnext/patches/v5_4/cleanup_journal_entry.py b/erpnext/patches/v5_4/cleanup_journal_entry.py index 9d493eab05a..3ae226b3835 100644 --- a/erpnext/patches/v5_4/cleanup_journal_entry.py +++ b/erpnext/patches/v5_4/cleanup_journal_entry.py @@ -9,6 +9,6 @@ def execute(): ("Journal Entry", "against_jv"), ("Expense Claim", "against_expense_claim"), ): - frappe.db.sql("""update `tabJournal Entry Detail` + frappe.db.sql("""update `tabJournal Entry Account` set reference_type=%s and reference_name={0} where ifnull({0}, '') != '' """.format(fieldname), doctype)