From c20abf6b2ae6cb2518971ea03b7edbf7035b1661 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Tue, 27 Jun 2017 13:21:46 +0530 Subject: [PATCH] send email to system managers about gst setup --- erpnext/patches/v8_1/setup_gst_india.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/erpnext/patches/v8_1/setup_gst_india.py b/erpnext/patches/v8_1/setup_gst_india.py index 6bb4776d8d..9e54815a13 100644 --- a/erpnext/patches/v8_1/setup_gst_india.py +++ b/erpnext/patches/v8_1/setup_gst_india.py @@ -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, + +

ERPNext is now GST Ready.

+ +

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.

+ +

Please refer {gst_document_link} to know more about how to setup and implement GST in ERPNext.

+ +

Please contact us at support@erpnext.com, if you have any questions.

+ +

Thanks,

+ERPNext Team. + """.format(gst_document_link=" ERPNext GST Document ") + + sendmail_to_system_managers("[Important] ERPNext GST updates", message) +