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