feat: added Resolved status with same functionality as Closed
This commit is contained in:
parent
79ed5755be
commit
899ec36532
@ -120,7 +120,7 @@
|
||||
"no_copy": 1,
|
||||
"oldfieldname": "status",
|
||||
"oldfieldtype": "Select",
|
||||
"options": "Open\nReplied\nClosed",
|
||||
"options": "Open\nReplied\nResolved\nClosed",
|
||||
"search_index": 1
|
||||
},
|
||||
{
|
||||
@ -420,7 +420,7 @@
|
||||
"icon": "fa fa-ticket",
|
||||
"idx": 7,
|
||||
"links": [],
|
||||
"modified": "2020-05-25 22:02:32.974165",
|
||||
"modified": "2020-05-26 12:12:59.343559",
|
||||
"modified_by": "Administrator",
|
||||
"module": "Support",
|
||||
"name": "Issue",
|
||||
|
@ -59,7 +59,7 @@ class Issue(Document):
|
||||
if self.status!="Open" and status =="Open" and not self.first_responded_on:
|
||||
self.first_responded_on = frappe.flags.current_time or now_datetime()
|
||||
|
||||
if self.status=="Closed" and status !="Closed":
|
||||
if self.status in ["Closed", "Resolved"] and status not in ["Resolved", "Closed"]:
|
||||
self.resolution_date = frappe.flags.current_time or now_datetime()
|
||||
if frappe.db.get_value("Issue", self.name, "agreement_fulfilled") == "Ongoing":
|
||||
set_service_level_agreement_variance(issue=self.name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user