mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: remove duplicate code
This commit is contained in:
@@ -291,10 +291,6 @@ class Issue(Document):
|
|||||||
self.agreement_status = "Ongoing"
|
self.agreement_status = "Ongoing"
|
||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
def reset_issue_metrics(self):
|
|
||||||
self.db_set("resolution_time", None)
|
|
||||||
self.db_set("user_resolution_time", None)
|
|
||||||
|
|
||||||
|
|
||||||
def get_priority(issue):
|
def get_priority(issue):
|
||||||
service_level_agreement = frappe.get_doc("Service Level Agreement", issue.service_level_agreement)
|
service_level_agreement = frappe.get_doc("Service Level Agreement", issue.service_level_agreement)
|
||||||
@@ -638,4 +634,4 @@ def is_before_working_hours(date, support_hours):
|
|||||||
time = get_time_in_seconds(date)
|
time = get_time_in_seconds(date)
|
||||||
if time < start_time:
|
if time < start_time:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user