2015-02-26 15:01:23 +05:30
|
|
|
# Copyright (c) 2013, Frappe Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
2015-02-23 20:18:38 +05:30
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
2015-02-24 13:12:13 +05:30
|
|
|
frappe.reload_doctype("Journal Entry")
|
2015-02-23 20:18:38 +05:30
|
|
|
frappe.db.sql("""update `tabJournal Entry` set title =
|
|
|
|
if(ifnull(pay_to_recd_from, "")!="", pay_to_recd_from,
|
|
|
|
(select account from `tabJournal Entry Account`
|
|
|
|
where parent=`tabJournal Entry`.name and idx=1 limit 1))""")
|