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