Merge pull request #9485 from saurabh6790/gst_update_email

send email to system managers about gst update
This commit is contained in:
Makarand Bauskar 2017-06-27 13:42:52 +05:30 committed by GitHub
commit 9d457d3e34

View File

@ -1,4 +1,5 @@
import frappe
from frappe.email import sendmail_to_system_managers
def execute():
frappe.reload_doc('regional', 'doctype', 'gst_hsn_code')
@ -11,3 +12,22 @@ def execute():
if frappe.db.get_single_value('System Settings', 'country')=='India':
from erpnext.regional.india.setup import setup
setup()
send_gst_update_email()
def send_gst_update_email():
message = """Hello,
<p>ERPNext is now GST Ready.</p>
<p>To start making GST Invoices from 1st of July, you just need to create new Tax Accounts, Templates and update your Customer's and Supplier's GST Numbers.</p>
<p>Please refer {gst_document_link} to know more about how to setup and implement GST in ERPNext.</p>
<p>Please contact us at support@erpnext.com, if you have any questions.</p>
<p>Thanks,</p>
ERPNext Team.
""".format(gst_document_link="<a href='http://frappe.github.io/erpnext/user/manual/en/regional/india/'> ERPNext GST Document </a>")
sendmail_to_system_managers("[Important] ERPNext GST updates", message)