2017-06-22 11:07:04 +00:00
|
|
|
import frappe
|
2017-06-27 07:51:46 +00:00
|
|
|
from frappe.email import sendmail_to_system_managers
|
2017-06-22 11:07:04 +00:00
|
|
|
|
|
|
|
def execute():
|
2017-06-22 12:46:51 +00:00
|
|
|
frappe.reload_doc('regional', 'doctype', 'gst_hsn_code')
|
|
|
|
|
|
|
|
for report_name in ('GST Sales Register', 'GST Purchase Register',
|
|
|
|
'GST Itemised Sales Register', 'GST Itemised Purchase Register'):
|
|
|
|
|
|
|
|
frappe.reload_doc('regional', 'report', frappe.scrub(report_name))
|
|
|
|
|
2017-06-22 11:07:04 +00:00
|
|
|
if frappe.db.get_single_value('System Settings', 'country')=='India':
|
|
|
|
from erpnext.regional.india.setup import setup
|
2017-06-27 12:35:17 +00:00
|
|
|
setup(patch=True)
|
2017-06-27 07:51:46 +00:00
|
|
|
send_gst_update_email()
|
|
|
|
|
|
|
|
def send_gst_update_email():
|
|
|
|
message = """Hello,
|
|
|
|
|
2017-06-27 12:01:41 +00:00
|
|
|
<p>ERPNext is now GST Ready!</p>
|
2017-06-27 07:51:46 +00:00
|
|
|
|
2017-06-27 12:01:41 +00:00
|
|
|
<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>
|
2017-06-27 07:51:46 +00:00
|
|
|
|
|
|
|
<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)
|
|
|
|
|