mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
style: format js files
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.listview_settings['Subcontracting Order'] = {
|
||||
frappe.listview_settings["Subcontracting Order"] = {
|
||||
get_indicator: function (doc) {
|
||||
const status_colors = {
|
||||
"Draft": "grey",
|
||||
"Open": "orange",
|
||||
Draft: "grey",
|
||||
Open: "orange",
|
||||
"Partially Received": "yellow",
|
||||
"Completed": "green",
|
||||
Completed: "green",
|
||||
"Partial Material Transferred": "purple",
|
||||
"Material Transferred": "blue",
|
||||
"Closed": "red",
|
||||
"Cancelled": "red",
|
||||
Closed: "red",
|
||||
Cancelled: "red",
|
||||
};
|
||||
return [__(doc.status), status_colors[doc.status], "status,=," + doc.status];
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
// Copyright (c) 2022, Frappe Technologies Pvt. Ltd. and contributors
|
||||
// For license information, please see license.txt
|
||||
|
||||
frappe.listview_settings['Subcontracting Receipt'] = {
|
||||
frappe.listview_settings["Subcontracting Receipt"] = {
|
||||
get_indicator: function (doc) {
|
||||
const status_colors = {
|
||||
"Draft": "grey",
|
||||
"Return": "gray",
|
||||
Draft: "grey",
|
||||
Return: "gray",
|
||||
"Return Issued": "grey",
|
||||
"Completed": "green",
|
||||
Completed: "green",
|
||||
};
|
||||
return [__(doc.status), status_colors[doc.status], "status,=," + doc.status];
|
||||
},
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user