2015-02-23 14:48:38 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
2015-02-24 07:42:13 +00:00
|
|
|
frappe.reload_doctype("Journal Entry")
|
2015-02-23 14:48:38 +00:00
|
|
|
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))""")
|