Skip to content

Commit

Permalink
fix: make changes that enable gantt view for job cards (#37661)
Browse files Browse the repository at this point in the history
* fix: make changes that enable gantt view for job cards

* fix: add fields on listview and remove from json file

* fix: undo modified date

---------

Co-authored-by: Dietmar Fischer <[email protected]>
(cherry picked from commit 500435b)
  • Loading branch information
Didiman1998 authored and mergify[bot] committed Oct 30, 2023
1 parent f1407bc commit 774432a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions erpnext/manufacturing/doctype/job_card/job_card_calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ frappe.views.calendar["Job Card"] = {
},
gantt: {
field_map: {
"start": "started_time",
"end": "started_time",
"start": "expected_start_date",
"end": "expected_end_date",
"id": "name",
"title": "subject",
"color": "color",
Expand Down
2 changes: 1 addition & 1 deletion erpnext/manufacturing/doctype/job_card/job_card_list.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
frappe.listview_settings['Job Card'] = {
has_indicator_for_draft: true,

add_fields: ["expected_start_date", "expected_end_date"],
get_indicator: function(doc) {
const status_colors = {
"Work In Progress": "orange",
Expand Down

0 comments on commit 774432a

Please sign in to comment.