Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: override indicator color for "Draft" #43449

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
frappe.listview_settings["Invoice Discounting"] = {
add_fields: ["status"],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
if (doc.status == "Draft") {
return [__("Draft"), "red", "status,=,Draft"];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
frappe.listview_settings["Payment Request"] = {
add_fields: ["status"],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
if (doc.status == "Draft") {
return [__("Draft"), "gray", "status,=,Draft"];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// render
frappe.listview_settings["POS Closing Entry"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
var status_color = {
Draft: "red",
Expand Down
1 change: 1 addition & 0 deletions erpnext/accounts/doctype/pos_invoice/pos_invoice_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ frappe.listview_settings["POS Invoice"] = {
"currency",
"is_return",
],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
var status_color = {
Draft: "red",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

// render
frappe.listview_settings["POS Opening Entry"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
var status_color = {
Draft: "red",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ frappe.listview_settings["Sales Invoice"] = {
"currency",
"is_return",
],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
const status_colors = {
Draft: "grey",
Expand Down
1 change: 1 addition & 0 deletions erpnext/assets/doctype/asset/asset_list.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
frappe.listview_settings["Asset"] = {
add_fields: ["status"],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
if (doc.status === "Fully Depreciated") {
return [__("Fully Depreciated"), "green", "status,=,Fully Depreciated"];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
frappe.listview_settings["BOM Creator"] = {
add_fields: ["status"],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
if (doc.status === "Draft") {
return [__("Draft"), "red", "status,=,Draft"];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
frappe.listview_settings["Production Plan"] = {
hide_name_column: true,
add_fields: ["status"],
has_indicator_for_draft: 1,
filters: [["status", "!=", "Closed"]],
get_indicator: function (doc) {
if (doc.status === "Submitted") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ frappe.listview_settings["Work Order"] = {
"planned_start_date",
"planned_end_date",
],
has_indicator_for_draft: 1,
filters: [["status", "!=", "Stopped"]],
get_indicator: function (doc) {
if (doc.status === "Submitted") {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
frappe.listview_settings["Delivery Trip"] = {
add_fields: ["status"],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
if (["Cancelled", "Draft"].includes(doc.status)) {
return [__(doc.status), "red", "status,=," + doc.status];
Expand Down
1 change: 1 addition & 0 deletions erpnext/stock/doctype/pick_list/pick_list_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// For license information, please see license.txt

frappe.listview_settings["Pick List"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
const status_colors = {
Draft: "grey",
Expand Down
1 change: 1 addition & 0 deletions erpnext/stock/doctype/stock_entry/stock_entry_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ frappe.listview_settings["Stock Entry"] = {
"`tabStock Entry`.`bom_no`",
"`tabStock Entry`.`is_return`",
],
has_indicator_for_draft: 1,
get_indicator: function (doc) {
if (doc.is_return === 1 && doc.purpose === "Material Transfer for Manufacture") {
return [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// For license information, please see license.txt

frappe.listview_settings["Stock Reservation Entry"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
const status_colors = {
Draft: "red",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// For license information, please see license.txt

frappe.listview_settings["Subcontracting Receipt"] = {
has_indicator_for_draft: 1,
get_indicator: function (doc) {
const status_colors = {
Draft: "grey",
Expand Down
Loading