mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 17:34:47 +00:00
feat: added Resolved status with same functionality as Closed
This commit is contained in:
@@ -120,7 +120,7 @@
|
|||||||
"no_copy": 1,
|
"no_copy": 1,
|
||||||
"oldfieldname": "status",
|
"oldfieldname": "status",
|
||||||
"oldfieldtype": "Select",
|
"oldfieldtype": "Select",
|
||||||
"options": "Open\nReplied\nClosed",
|
"options": "Open\nReplied\nResolved\nClosed",
|
||||||
"search_index": 1
|
"search_index": 1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -420,7 +420,7 @@
|
|||||||
"icon": "fa fa-ticket",
|
"icon": "fa fa-ticket",
|
||||||
"idx": 7,
|
"idx": 7,
|
||||||
"links": [],
|
"links": [],
|
||||||
"modified": "2020-05-25 22:02:32.974165",
|
"modified": "2020-05-26 12:12:59.343559",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Support",
|
"module": "Support",
|
||||||
"name": "Issue",
|
"name": "Issue",
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class Issue(Document):
|
|||||||
if self.status!="Open" and status =="Open" and not self.first_responded_on:
|
if self.status!="Open" and status =="Open" and not self.first_responded_on:
|
||||||
self.first_responded_on = frappe.flags.current_time or now_datetime()
|
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()
|
self.resolution_date = frappe.flags.current_time or now_datetime()
|
||||||
if frappe.db.get_value("Issue", self.name, "agreement_fulfilled") == "Ongoing":
|
if frappe.db.get_value("Issue", self.name, "agreement_fulfilled") == "Ongoing":
|
||||||
set_service_level_agreement_variance(issue=self.name)
|
set_service_level_agreement_variance(issue=self.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user