style: format js files

This commit is contained in:
Ankush Menat
2024-03-11 10:58:48 +05:30
parent c46be27e9e
commit 4c629d31c6
605 changed files with 27454 additions and 18952 deletions

View File

@@ -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];
},
};
};

View File

@@ -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];
},
};
};