fix: show proper status in list view

This commit is contained in:
Afshan
2021-10-27 16:28:59 +05:30
committed by chillaranand
parent 6e4b94f265
commit d4fe911e24

View File

@@ -0,0 +1,9 @@
frappe.listview_settings['Sales Commission'] = {
get_indicator: function (doc) {
if (doc.status == "Paid") {
return [__(doc.status), "green", "status,=," + doc.status];
} else {
return [__(doc.status), "red", "status,=," + doc.status];
}
}
}