mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-07 07:20:26 +00:00
fix: show proper status in list view
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user