mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 13:42:10 +01:00
fix: 'time to resolve: failed' on issue (#47406)
* fix: 'time to resolve: failed' on issue
* fix: sla_resolution_date
(cherry picked from commit 45393d51a2)
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -1203,9 +1203,9 @@ function set_time_to_resolve_and_response(frm, apply_sla_for_resolution) {
|
|||||||
if (apply_sla_for_resolution) {
|
if (apply_sla_for_resolution) {
|
||||||
let time_to_resolve;
|
let time_to_resolve;
|
||||||
if (!frm.doc.resolution_date) {
|
if (!frm.doc.resolution_date) {
|
||||||
time_to_resolve = get_time_left(frm.doc.resolution_by, frm.doc.agreement_status);
|
time_to_resolve = get_time_left(frm.doc.sla_resolution_by, frm.doc.agreement_status);
|
||||||
} else {
|
} else {
|
||||||
time_to_resolve = get_status(frm.doc.resolution_by, frm.doc.resolution_date);
|
time_to_resolve = get_status(frm.doc.sla_resolution_by, frm.doc.sla_resolution_date);
|
||||||
}
|
}
|
||||||
|
|
||||||
alert += `
|
alert += `
|
||||||
|
|||||||
Reference in New Issue
Block a user