[cleanup] [wip] email digest

This commit is contained in:
Rushabh Mehta
2015-09-29 16:36:57 +05:30
parent c27748b2b3
commit 174299124f
9 changed files with 412 additions and 1063 deletions

View File

@@ -4,7 +4,7 @@
from __future__ import unicode_literals
import frappe
from frappe.email import sendmail_to_system_managers
from frappe.utils import get_url_to_form
from frappe.utils import get_link_to_form
def execute():
wrong_records = []
@@ -15,7 +15,7 @@ def execute():
and modified >= '2015-02-17' and docstatus=1""".format(dt))
if records:
records = [get_url_to_form(dt, d) for d in records]
records = [get_link_to_form(dt, d) for d in records]
wrong_records.append([dt, records])
if wrong_records:

View File

@@ -0,0 +1,6 @@
import frappe
def execute():
frappe.reload_doctype("Email Digest")
frappe.db.sql("""update `tabEmail Digest` set expense_year_to_date =
income_year_to_date""")