-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Status in Design Request and some fixes
- Loading branch information
rijilprakashan
committed
Nov 7, 2023
1 parent
9eb7903
commit e638bad
Showing
4 changed files
with
42 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
frappe.listview_settings['Design Request'] = { | ||
add_fields: ["id", "status", "mobile_no", "delivery_date"], | ||
has_indicator_for_draft:1, | ||
get_indicator: function(doc) { | ||
const status_colors = { | ||
"Request For Verification": "grey", | ||
"Request For Approval": "orange", | ||
"Approved": "purple", | ||
"Rejected": "red", | ||
"Hold": "red", | ||
"BOM Created": "green", | ||
"Workorder Created": "blue" | ||
}; | ||
return [__(doc.status), status_colors[doc.status], "status,=,"+doc.status]; | ||
}, | ||
}; |