Appraisal : Calculate Total Error

i deleted calculate_total function from and still gives me Total cannot be zero

i Tried bench restart & migrate & clear-cache and still gives me this error everytime

import frappe
from frappe import _
from frappe.model.document import Document
from frappe.model.mapper import get_mapped_doc
from frappe.utils import flt, getdate

from import set_employee_name, validate_active_employee

class Appraisal(Document):
	def validate(self):
		if not self.status:
			self.status = "Draft"

		if not self.goals:
			frappe.throw(_("Goals cannot be empty"))


	def get_employee_name(self):
		self.employee_name = frappe.db.get_value("Employee", self.employee, "employee_name")
		return self.employee_name

	def validate_dates(self):
		if getdate(self.start_date) > getdate(self.end_date):
			frappe.throw(_("End Date can not be less than Start Date"))

	def validate_existing_appraisal(self):
		chk = frappe.db.sql(
			"""select name from `tabAppraisal` where employee=%s
			and (status='Submitted' or status='Completed')
			and ((start_date>=%s and start_date<=%s)
			or (end_date>=%s and end_date<=%s))""",
			(self.employee, self.start_date, self.end_date, self.start_date, self.end_date),
		if chk:
				_("Appraisal {0} created for Employee {1} in the given date range").format(
					chk[0][0], self.employee_name

	def on_submit(self):
		frappe.db.set(self, "status", "Submitted")

	def on_cancel(self):
		frappe.db.set(self, "status", "Cancelled")

def fetch_appraisal_template(source_name, target_doc=None):
	target_doc = get_mapped_doc(
		"Appraisal Template",
			"Appraisal Template": {
				"doctype": "Appraisal",
			"Appraisal Template Goal": {
				"doctype": "Appraisal Goal",

	return target_doc

Hi @GrandMaster,

We tested so we did not find any type of error.
please again check for it.

Thank You!