brotherton-erpnext/erpnext/patches/v6_4/email_digest_update.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
320 B
Python
Raw Normal View History

from __future__ import unicode_literals
2015-09-29 11:06:57 +00:00
import frappe
def execute():
frappe.reload_doctype("Email Digest")
frappe.db.sql("""update `tabEmail Digest` set expense_year_to_date =
income_year_to_date""")
2015-10-15 11:26:53 +00:00
if frappe.db.exists("Email Digest", "Scheduler Errors"):
frappe.delete_doc("Email Digest", "Scheduler Errors")