mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
feat: add list_view status for partial billing
(cherry picked from commit ff0b37055b)
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
frappe.listview_settings["Timesheet"] = {
|
frappe.listview_settings["Timesheet"] = {
|
||||||
add_fields: ["status", "total_hours", "start_date", "end_date"],
|
add_fields: ["status", "total_hours", "start_date", "end_date"],
|
||||||
get_indicator: function (doc) {
|
get_indicator: function (doc) {
|
||||||
|
if (doc.status == "Partially Billed") {
|
||||||
|
return [__("Partially Billed"), "orange", "status,=," + "Partially Billed"];
|
||||||
|
}
|
||||||
|
|
||||||
if (doc.status == "Billed") {
|
if (doc.status == "Billed") {
|
||||||
return [__("Billed"), "green", "status,=," + "Billed"];
|
return [__("Billed"), "green", "status,=," + "Billed"];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user