feat: add list_view status for partial billing

(cherry picked from commit ff0b37055b)
This commit is contained in:
l0gesh29
2025-12-23 20:14:45 +05:30
committed by Mergify
parent 332673f260
commit 9b88275312

View File

@@ -1,6 +1,10 @@
frappe.listview_settings["Timesheet"] = {
add_fields: ["status", "total_hours", "start_date", "end_date"],
get_indicator: function (doc) {
if (doc.status == "Partially Billed") {
return [__("Partially Billed"), "orange", "status,=," + "Partially Billed"];
}
if (doc.status == "Billed") {
return [__("Billed"), "green", "status,=," + "Billed"];
}