fix: List view status

This commit is contained in:
Deepesh Garg 2021-12-24 16:27:09 +05:30
parent 33feee7ae2
commit fc2f7fa028

View file

@ -26,7 +26,6 @@ frappe.listview_settings['Data Import'] = {
'Error': 'red'
};
let status = doc.status;
let import_log = JSON.parse(doc.import_log || '[]');
if (imports_in_progress.includes(doc.name)) {
status = 'In Progress';
@ -34,9 +33,6 @@ frappe.listview_settings['Data Import'] = {
if (status == 'Pending') {
status = 'Not Started';
}
if (doc.status == 'Pending' && import_log.length > 0) {
status = 'Partially Completed';
}
return [__(status), colors[status], 'status,=,' + doc.status];
},