mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
chore: show correct status in list view
(cherry picked from commit 1014940953)
This commit is contained in:
@@ -1,12 +1,16 @@
|
|||||||
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
|
// Copyright (c) 2018, Frappe Technologies Pvt. Ltd. and Contributors
|
||||||
// License: GNU General Public License v3. See license.txt
|
// License: GNU General Public License v3. See license.txt
|
||||||
|
|
||||||
frappe.listview_settings["Transaction Deletion Record"] = {
|
frappe.listview_settings['Transaction Deletion Record'] = {
|
||||||
get_indicator: function (doc) {
|
add_fields: ["status"],
|
||||||
if (doc.docstatus == 0) {
|
get_indicator: function(doc) {
|
||||||
return [__("Draft"), "red"];
|
let colors = {
|
||||||
} else {
|
'Queued': 'orange',
|
||||||
return [__("Completed"), "green"];
|
'Completed': 'green',
|
||||||
}
|
'Running': 'blue',
|
||||||
|
'Failed': 'red',
|
||||||
|
};
|
||||||
|
let status = doc.status;
|
||||||
|
return [__(status), colors[status], 'status,=,'+status];
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user