From 682ce24f8c6857918695fd1b6984f2996549c9dd Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 13 Aug 2015 11:50:03 +0530 Subject: [PATCH] [patch] cleanup_journal_entry --- erpnext/patches/v5_4/cleanup_journal_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v5_4/cleanup_journal_entry.py b/erpnext/patches/v5_4/cleanup_journal_entry.py index b8edbaa962..9d493eab05 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.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)