mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
Merge pull request #176 from anandpdoshi/master
Patch to enable income year to date summary in email digest
This commit is contained in:
10
erpnext/patches/edigest_enable_income_year_to_date.py
Normal file
10
erpnext/patches/edigest_enable_income_year_to_date.py
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
import webnotes
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
companies_list = webnotes.conn.sql("SELECT company_name FROM `tabCompany`", as_list=1)
|
||||||
|
for company in companies_list:
|
||||||
|
if company and company[0]:
|
||||||
|
edigest = Document('Email Digest', "Default Weekly Digest - " + company[0])
|
||||||
|
if edigest:
|
||||||
|
edigest.income_year_to_date = 1
|
||||||
|
edigest.save()
|
||||||
Reference in New Issue
Block a user