Merge pull request #39166 from barredterra/remove-je-list-indicators
refactor(Journal Entry): remove unused/redundant list indicators
This commit is contained in:
commit
ec5c0deb0e
@ -1,12 +1,18 @@
|
|||||||
frappe.listview_settings['Journal Entry'] = {
|
frappe.listview_settings["Journal Entry"] = {
|
||||||
add_fields: ["voucher_type", "posting_date", "total_debit", "company", "user_remark"],
|
add_fields: [
|
||||||
get_indicator: function(doc) {
|
"voucher_type",
|
||||||
if(doc.docstatus==0) {
|
"posting_date",
|
||||||
return [__("Draft", "red", "docstatus,=,0")]
|
"total_debit",
|
||||||
} else if(doc.docstatus==2) {
|
"company",
|
||||||
return [__("Cancelled", "grey", "docstatus,=,2")]
|
"user_remark",
|
||||||
} else {
|
],
|
||||||
return [__(doc.voucher_type), "blue", "voucher_type,=," + doc.voucher_type]
|
get_indicator: function (doc) {
|
||||||
}
|
if (doc.docstatus === 1) {
|
||||||
|
return [
|
||||||
|
__(doc.voucher_type),
|
||||||
|
"blue",
|
||||||
|
`voucher_type,=,${doc.voucher_type}`,
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user