Browse Source

quick column fix

pull/1/head
Wahyu Ramadhan 1 year ago
parent
commit
ea225920cc
  1. 4
      edit-mode/function/ganttConfig.js

4
edit-mode/function/ganttConfig.js

@ -334,11 +334,13 @@ var allColumns = [
},
{ name: "planned_duration", label: "Baseline Duration (Day)", align: "center", min_width: 50, resize: true, editor: editor.duration, template: function (text) {
let start;
let end;
text.planned_start ? start = text.planned_start : start = text.start_date;
text.planned_end ? end = text.planned_end : end = text.end_date;
let plannedDuration = gantt.calculateDuration({
start_date: new Date(start),
end_date: new Date(text.end_date)
end_date: new Date(end)
})
return plannedDuration;
}},

Loading…
Cancel
Save