fix: remove commission rate from list view

This commit is contained in:
Afshan
2021-10-27 16:33:19 +05:30
committed by chillaranand
parent d4fe911e24
commit 7a80271e66
2 changed files with 2 additions and 2 deletions

View File

@@ -130,7 +130,6 @@
"depends_on": "calculate_commission_manually",
"fieldname": "commission_rate",
"fieldtype": "Float",
"in_list_view": 1,
"label": "Commission Rate"
},
{
@@ -223,7 +222,7 @@
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2021-10-27 16:07:57.409040",
"modified": "2021-10-27 16:32:19.283507",
"modified_by": "Administrator",
"module": "Payroll",
"name": "Sales Commission",

View File

@@ -1,4 +1,5 @@
frappe.listview_settings['Sales Commission'] = {
add_fields: ["total_commission_amount", "status"],
get_indicator: function (doc) {
if (doc.status == "Paid") {
return [__(doc.status), "green", "status,=," + doc.status];