2017-10-25 06:43:42 +00:00
|
|
|
# Copyright (c) 2017, Frappe and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
2017-11-23 09:52:10 +00:00
|
|
|
# 'Schools' module changed to the 'Education'
|
|
|
|
# frappe.reload_doc("schools", "doctype", "fees")
|
|
|
|
frappe.reload_doc("education", "doctype", "fees")
|
2017-11-08 08:11:10 +00:00
|
|
|
|
2017-10-25 06:43:42 +00:00
|
|
|
if "total_amount" not in frappe.db.get_table_columns("Fees"):
|
|
|
|
return
|
|
|
|
|
|
|
|
frappe.db.sql("""update tabFees set grand_total=total_amount where grand_total = 0.0""")
|